Skip to content

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

Closed
@mattiashallberg

Description

@mattiashallberg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2Issues which are related to the pre 0.4 codebaseneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions