microsoft / autogen

A programming framework for agentic AI. Discord: https://aka.ms/autogen-dc. Roadmap: https://aka.ms/autogen-roadmap
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
28.19k stars 4.12k forks source link

[Bug]: Support for anthropic stopped to work #2850

Open mattiashallberg opened 1 month ago

mattiashallberg commented 1 month ago

Describe the bug

I have followed your instructions on your website for how to use Anthropic's API with Autogen (https://microsoft.github.io/autogen/docs/topics/non-openai-models/cloud-anthropic), but it does not work as expected, even with your notebook.

It seems you have closed a ticket for this before (2164), so I assume that it worked in the past. I understand that the Anthropic API has evolved, but even after setting the version ("anthropic==0.23.1"), I get error "AttributeError: 'Anthropic' object has no attribute 'beta'".

Steps to reproduce

Run the notebook from the page https://microsoft.github.io/autogen/docs/topics/non-openai-models/cloud-anthropic.

Model Used

"claude-3-sonnet-20240229"

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

No response

AdrianRibao commented 5 days ago

I just found this bug too