mirror of https://github.com/microsoft/autogen.git
Merge 1cdb871849
into 8a8fcd8906
This commit is contained in:
commit
24b7cc1728
|
@ -79,6 +79,7 @@ class ConversableAgent(LLMAgent):
|
|||
description: Optional[str] = None,
|
||||
chat_messages: Optional[Dict[Agent, List[Dict]]] = None,
|
||||
silent: Optional[bool] = None,
|
||||
role_for_system_message: Literal["system", "user"] = "system",
|
||||
):
|
||||
"""
|
||||
Args:
|
||||
|
@ -143,7 +144,7 @@ class ConversableAgent(LLMAgent):
|
|||
else:
|
||||
self._oai_messages = chat_messages
|
||||
|
||||
self._oai_system_message = [{"content": system_message, "role": "system"}]
|
||||
self._oai_system_message = [{"content": system_message, "role": role_for_system_message}]
|
||||
self._description = description if description is not None else system_message
|
||||
self._is_termination_msg = (
|
||||
is_termination_msg
|
||||
|
|
|
@ -26,6 +26,12 @@ NON_CACHE_KEY = [
|
|||
DEFAULT_AZURE_API_VERSION = "2024-02-01"
|
||||
OAI_PRICE1K = {
|
||||
# https://openai.com/api/pricing/
|
||||
# o1-preview
|
||||
"o1-preview": (0.015, 0.060),
|
||||
"o1-preview-2024-09-12": (0.015, 0.060),
|
||||
# o1-mini
|
||||
"o1-mini": (0.003, 0.012),
|
||||
"o1-mini-2024-09-12": (0.003, 0.012),
|
||||
# gpt-4o
|
||||
"gpt-4o": (0.005, 0.015),
|
||||
"gpt-4o-2024-05-13": (0.005, 0.015),
|
||||
|
|
Loading…
Reference in New Issue