Chore: update anthropic Models#10860
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. 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. WalkthroughThis pull request updates the Anthropic model constants by adding two new models (claude-opus-4-5-20251101 and claude-haiku-4-5-20251001), removing four model variants, marking multiple models as deprecated, and adjusting tool_calling capabilities across the catalog. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Pre-merge checks and finishing touchesImportant Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning, 1 inconclusive)
✅ Passed checks (4 passed)
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.
Pull request overview
This PR updates the Anthropic model configuration to reflect current model availability, organizing models into active and deprecated categories while adding support for newer model versions.
Key Changes:
- Adds four new Anthropic models including Claude Opus 4.5 and Haiku variants
- Reorganizes deprecated models into a dedicated section with explicit
deprecated=Trueflags - Removes the "Tool calling unsupported models" section by incorporating those models into the deprecated section
💡 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), |
There was a problem hiding this comment.
The model 'claude-3-5-haiku-20241022' appears in both the active models section (line 11) and the deprecated models section (line 39). This duplication could lead to confusion and inconsistent behavior. Remove one of these entries based on the model's actual status.
| 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), |
There was a problem hiding this comment.
The model 'claude-3-haiku-20240307' appears in both the active models section (line 12) and the deprecated models section (line 38 in the original diff context). This duplication could cause inconsistent behavior. Clarify whether this model should be active or deprecated and remove the duplicate entry.
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (39.99%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #10860 +/- ##
==========================================
- Coverage 32.82% 32.53% -0.29%
==========================================
Files 1367 1370 +3
Lines 64017 63518 -499
Branches 9553 9391 -162
==========================================
- Hits 21014 20667 -347
+ Misses 41943 41811 -132
+ Partials 1060 1040 -20
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
* Update anthropic_constants.py * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This pull request updates the list of Anthropic models in
anthropic_constants.pyto reflect the latest available models, clarify which are deprecated, and improve how deprecated and unsupported models are represented. The most important changes are:New Model Additions:
claude-opus-4-5-20251101,claude-haiku-4-5-20251001,claude-3-5-haiku-20241022, andclaude-3-haiku-20240307with tool calling enabled.Deprecation and Organization Improvements:
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.1,claude-2.0) as deprecated and moved them to the deprecated section for clarity.Cleanup and Clarity:
Summary by CodeRabbit
New Features
Updates
✏️ Tip: You can customize this high-level summary in your review settings.