-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Describe the bug
[Bug]: Does not work with claude
Steps to reproduce
- Use the following config for claude
[
{
"model": "claude-3-opus-20240229",
"api_key": "",
"base_url": "https://api.anthropic.com",
"api_type": "anthropic"
}
]
2. Run the following code.
`import autogen
from autogen.agentchat.contrib.agent_builder import AgentBuilder
config_file_or_env = "OAI_CONFIG_LIST"
llm_config = {"temperature": 0}
config_list = autogen.config_list_from_json(config_file_or_env, filter_dict={"model": ["claude-3-opus-20240229"]})
def start_task(execution_task: str, agent_list: list):
group_chat = autogen.GroupChat(agents=agent_list, messages=[], max_round=12)
manager = autogen.GroupChatManager(groupchat=group_chat, llm_config={"config_list": config_list, **llm_config})
agent_list[0].initiate_chat(manager, message=execution_task)
builder = AgentBuilder(
config_file_or_env=config_file_or_env, builder_model="claude-3-opus-20240229", agent_model="claude-3-opus-20240229"
)
`
Model Used
claude 3 opus
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response