Skip to content

Fix: Update deprecated Anthropic model constants to current versions#1371

Open
scadoshi wants to merge 1 commit into0xPlaygrounds:mainfrom
scadoshi:fix/update-deprecated-anthropic-models
Open

Fix: Update deprecated Anthropic model constants to current versions#1371
scadoshi wants to merge 1 commit into0xPlaygrounds:mainfrom
scadoshi:fix/update-deprecated-anthropic-models

Conversation

@scadoshi
Copy link

@scadoshi scadoshi commented Feb 6, 2026

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

  • 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

Model 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, 2026
  • claude-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 --check passed
  • cargo clippy --all-features --all-targets passed
  • cargo check passed
  • ✅ All examples updated to reference new model constants

- 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
@joshua-mo-143
Copy link
Collaborator

Need to fix the merge conflict, otherwise lgtm

@joshua-mo-143 joshua-mo-143 added the awaiting changes This PR is awaiting some changes from the original PR submitter. label Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changes This PR is awaiting some changes from the original PR submitter.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Some Anthropic (Claude) model names appear deprecated or invalid, resulting in 404 Not Found errors from the Anthropic API

2 participants