Fix: Update deprecated Anthropic model constants to current versions#1371
Open
scadoshi wants to merge 1 commit into0xPlaygrounds:mainfrom
Open
Fix: Update deprecated Anthropic model constants to current versions#1371scadoshi wants to merge 1 commit into0xPlaygrounds:mainfrom
scadoshi wants to merge 1 commit into0xPlaygrounds:mainfrom
Conversation
- Replace CLAUDE_4_OPUS/CLAUDE_4_SONNET with CLAUDE_OPUS_4_6/CLAUDE_SONNET_4_5 - Remove deprecated CLAUDE_3_7_SONNET and retired CLAUDE_3_5_SONNET constants - Replace CLAUDE_3_5_HAIKU with CLAUDE_HAIKU_4_5 - Update all examples and tests to use new model constants - Use accurate model IDs: claude-opus-4-6, claude-sonnet-4-5-20250929, claude-haiku-4-5-20251001 Fixes 0xPlaygrounds#1370
Collaborator
|
Need to fix the merge conflict, otherwise lgtm |
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
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.
Title:
fix: Update deprecated Anthropic model constants to current versions
Description:
Fixes #1370
Summary
Updates Rig's Anthropic model constants to use current, supported model IDs.
The previous constants pointed to deprecated or retired models that return
404 errors from Anthropic's API.
Changes
CLAUDE_4_OPUS/CLAUDE_4_SONNETwithCLAUDE_OPUS_4_6/CLAUDE_SONNET_4_5CLAUDE_3_7_SONNETand retiredCLAUDE_3_5_SONNETconstants
CLAUDE_3_5_HAIKUwithCLAUDE_HAIKU_4_5claude-opus-4-6,claude-sonnet-4-5-20250929,claude-haiku-4-5-20251001Model Status (per [Anthropic's
docs](https://docs.anthropic.com/en/docs/about-claude/models))
claude-3-5-sonnet-latest- Retired Oct 28, 2025 (404 error)claude-3-7-sonnet-latest- Deprecated, retiring Feb 19, 2026claude-opus-4-6- Active (latest Opus)claude-sonnet-4-5-20250929- Active (latest Sonnet)claude-haiku-4-5-20251001- Active (latest Haiku)Testing
cargo fmt --checkpassedcargo clippy --all-features --all-targetspassedcargo checkpassed