Skip to content

Adding bedrock chat completion for anthropic models #6170

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

HariniNarasimhan
Copy link

Why are these changes needed?

Anthropic models are supported by AWS bedrock. ChatCompletionClient can be created for anthropic bedrock models using this changes. This enables the user to do the following

  • Add any anthropic models and version from AWS bedrock
  • Can use ChatCompletionClient for bedrock anthropic models

Related issue number

Closes #5226

@HariniNarasimhan
Copy link
Author

@microsoft-github-policy-service agree

Copy link
Collaborator

@ekzhu ekzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use secrete str for keys and tokens

Copy link

codecov bot commented Apr 22, 2025

Codecov Report

Attention: Patch coverage is 45.61404% with 31 lines in your changes missing coverage. Please review.

Project coverage is 78.14%. Comparing base (b3f3731) to head (bf61909).

Files with missing lines Patch % Lines
.../autogen_ext/models/anthropic/_anthropic_client.py 27.90% 31 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6170      +/-   ##
==========================================
- Coverage   78.26%   78.14%   -0.13%     
==========================================
  Files         217      217              
  Lines       15669    15723      +54     
==========================================
+ Hits        12263    12286      +23     
- Misses       3406     3437      +31     
Flag Coverage Δ
unittests 78.14% <45.61%> (-0.13%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ekzhu
Copy link
Collaborator

ekzhu commented Apr 22, 2025

@HariniNarasimhan checkout python/README.md for how to run auto checks locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for AWS Bedrock integration
4 participants