-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Anthropic Claude models #2245
Conversation
I'm actually not sure about where to put the AnthropicClient class. It will be much more convinient to use Anthropic API if we can treat this client as same level as OpenAIClient in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For such an important topic, it should be on the website rather than a notebook example.
Thanks for the contribution, @levscaut ! Currently, for the ease of maintainance, we only have openAI compatible client in the core. For non-OpenAI style client, a tutorial/notebook example would be simpler, but we could add it to the Could you also add an example here: https://microsoft.github.io/autogen/docs/topics/non-openai-models/about-using-nonopenai-models? Create a page like |
Agree with @thinkall. we can start with a notebook and have people try it out. Once the code is stable and we get resources for testing non-openai APIs, we can formalize it into a first-class client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with the comments for moving in the right place, but other than that LGTM
Thanks for the advice! I've moved the notebook to website folder and added a link to it. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2245 +/- ##
=======================================
Coverage 37.94% 37.94%
=======================================
Files 77 77
Lines 7784 7784
Branches 1667 1667
=======================================
Hits 2954 2954
Misses 4580 4580
Partials 250 250
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
* init notebook * move notebook to website, remove set your api section * add link to claude page * replace config_from_json of raw python config * update cost --------- Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Why are these changes needed?
AutoGen do not currently have support for the Anthropic API.
Related issue number
#2164
Checks