-
Notifications
You must be signed in to change notification settings - Fork 99
feat: introduce AnthropicBetaProvider for beta API support #1713
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
teamdandelion
merged 1 commit into
v2
from
12-17-feat_introduce_anthropicbetaprovider_for_beta_api_support
Dec 18, 2025
Merged
feat: introduce AnthropicBetaProvider for beta API support #1713
teamdandelion
merged 1 commit into
v2
from
12-17-feat_introduce_anthropicbetaprovider_for_beta_api_support
Dec 18, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| 🔵 In progress View logs |
v2-docs | 1adfb73 | Dec 17 2025, 03:56 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
v2-docs | 9fe7369 | Dec 18 2025, 07:26 PM |
This was referenced Dec 17, 2025
Collaborator
Author
0e55905 to
cc8cacd
Compare
18a1591 to
e974ef1
Compare
e974ef1 to
7eddc41
Compare
2b8e644 to
c6fdc4d
Compare
Collaborator
|
The description code example is hilarious |
willbakst
reviewed
Dec 17, 2025
c6fdc4d to
edc375e
Compare
cc47f7f to
f2e1fdc
Compare
edc375e to
006760b
Compare
006760b to
7fcb386
Compare
This was referenced Dec 17, 2025
willbakst
approved these changes
Dec 18, 2025
7fcb386 to
8c372ca
Compare
This was referenced Dec 18, 2025
8c372ca to
9fe7369
Compare
Collaborator
Merge activity
|
This was referenced Dec 18, 2025
This was referenced Dec 19, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

TL;DR
Added support for Anthropic's beta API to enable strict structured output formatting.
What changed?
betapackage within the Anthropic provider implementationAnthropicBetaProviderclass that uses Anthropic's beta APIAnthropicProviderto conditionally use the beta provider when strict formatting is requestedstandardpackageHow to test?
Use the Anthropic provider with a model that supports strict structured output formatting:
Verify that appropriate error messages are shown when using models that don't support strict formatting.
Why make this change?
Anthropic's beta API provides better support for strict structured output formatting, which allows for more reliable parsing of model outputs into Pydantic models. This change enables users to get properly typed outputs from Anthropic models that support this feature, improving type safety and reducing the need for error handling around parsing.