-
Notifications
You must be signed in to change notification settings - Fork 8.2k
fix: anthropic constants #10862
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
fix: anthropic constants #10862
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Pull request overview
This pull request updates the Anthropic model constants to reflect current model availability, adding new Claude 4.5 and 4.1 series models, reorganizing the model list for clarity, and explicitly marking deprecated models. The changes update model metadata used throughout the codebase to determine which Anthropic models are available and their capabilities.
Key Changes
- Added six new Claude 4.x series models (opus-4-5, haiku-4-5, sonnet-4-5, opus-4-1, opus-4, sonnet-4) and moved two Claude 3.x models from deprecated to active status
- Reorganized the model list with a clear "Deprecated models" section and moved all
*-latestvariant models to the deprecated section - Updated Claude 2.x models (2.1, 2.0) to explicitly include the
deprecated=Trueflag
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| create_model_metadata(provider="Anthropic", name="claude-3-5-sonnet-latest", icon="Anthropic", tool_calling=True), | ||
| create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-latest", icon="Anthropic", tool_calling=True), | ||
| create_model_metadata(provider="Anthropic", name="claude-3-opus-latest", icon="Anthropic", tool_calling=True), | ||
| create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-20241022", icon="Anthropic", tool_calling=True), |
Copilot
AI
Dec 3, 2025
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.
The model claude-3-5-haiku-20241022 was previously marked as deprecated but is now listed as a currently supported model. This appears inconsistent with claude-3-5-sonnet-20241022 (line 39) which remains deprecated. If this model is being un-deprecated, please verify this is correct. If both models were released around the same time (October 2024), it's unclear why one would be deprecated and the other not.
| create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-20241022", icon="Anthropic", tool_calling=True), | |
| create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-20241022", icon="Anthropic", tool_calling=True, deprecated=True), |
| create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-latest", icon="Anthropic", tool_calling=True), | ||
| create_model_metadata(provider="Anthropic", name="claude-3-opus-latest", icon="Anthropic", tool_calling=True), | ||
| create_model_metadata(provider="Anthropic", name="claude-3-5-haiku-20241022", icon="Anthropic", tool_calling=True), | ||
| create_model_metadata(provider="Anthropic", name="claude-3-haiku-20240307", icon="Anthropic", tool_calling=True), |
Copilot
AI
Dec 3, 2025
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.
The model claude-3-haiku-20240307 was previously marked as deprecated but is now listed as a currently supported model. Given this model is from March 2024 (over 1.5 years old), it's unusual to un-deprecate it. Please verify this change is intentional and that this older model should indeed be actively supported.
| create_model_metadata(provider="Anthropic", name="claude-3-haiku-20240307", icon="Anthropic", tool_calling=True), | |
| create_model_metadata(provider="Anthropic", name="claude-3-haiku-20240307", icon="Anthropic", tool_calling=True, deprecated=True), |
Cristhianzl
left a comment
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.
lgtm
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-1.7.0 #10862 +/- ##
================================================
Coverage ? 32.56%
================================================
Files ? 1367
Lines ? 63354
Branches ? 9374
================================================
Hits ? 20632
Misses ? 41682
Partials ? 1040
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This pull request updates the list of Anthropic models in
anthropic_constants.pyto include new model versions, clarify which models are deprecated, and reorganize the list for better clarity. The main changes are the addition of new models, explicit marking of deprecated models, and improved grouping of models by their status.Model updates and additions:
claude-opus-4-5-20251101,claude-haiku-4-5-20251001,claude-3-5-haiku-20241022, andclaude-3-haiku-20240307as supported models with tool calling enabled.Deprecation and organization:
claude-3-7-sonnet-latest,claude-3-5-sonnet-latest,claude-3-5-haiku-latest,claude-3-opus-latest) to a new "Deprecated models" section and explicitly marked them as deprecated.claude-2.1andclaude-2.0to be marked as deprecated and grouped them under deprecated models, clarifying their tool calling support as false.