Skip to content

Add Anthropic provider classes #1120

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

Merged
merged 4 commits into from
Mar 17, 2025
Merged

Conversation

hrahmadi71
Copy link
Contributor

This PR introduces Anthropic provider classes, as requested in #1073, along with their corresponding unit tests and documentation.

- Introduced `AnthropicProvider` class for handling interactions with the Anthropic API.
- Updated `AnthropicModel` to accept a `provider` parameter, allowing for more flexible client initialization.
- Deprecated the use of `api_key`, `anthropic_client`, and `http_client` parameters in favor of the new `provider` parameter.
- Enhanced tests to validate the new provider integration and ensure backward compatibility with existing functionality.
Copy link
Contributor

hyperlint-ai bot commented Mar 13, 2025

PR Change Summary

Introduced Anthropic provider classes and updated documentation accordingly.

  • Added Anthropic provider classes to the library
  • Updated documentation to include the new provider argument
  • Introduced examples for using custom HTTP clients with the Anthropic provider

Modified Files

  • docs/models.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

What is Hyperlint?

Hyperlint is an AI agent that helps you write, edit, and maintain your documentation.

Learn more about the Hyperlint AI reviewer and the checks that we can run on your documentation.

@Kludex Kludex merged commit 8ddd05c into pydantic:main Mar 17, 2025
14 checks passed
@Kludex
Copy link
Member

Kludex commented Mar 17, 2025

Thanks!

@hrahmadi71 hrahmadi71 deleted the add-anthropic-provider branch March 17, 2025 12:29
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.

2 participants