fix(LAC-3589): remove retired Claude models from provider definitions - #493
Merged
Merged
Conversation
Opus 4.1 (retired 2026-08-05), Opus 4, and Sonnet 4 (both retired 2026-06-15) return 404 from the Anthropic API. Remove their model_ids constants and ModelDefinition entries so users can no longer select a model that hard-fails on every request. Re-point the two Tier-3 passthrough tests at a literal retired ID since no active model exercises that branch anymore. Verified against the live model-deprecations page. Current active Anthropic lineup (Fable 5 / Opus 5 default / Sonnet 5 / Haiku 4.5) plus legacy-but-callable Opus 4.8/4.7/4.6/4.5 and Sonnet 4.6/4.5 all remain. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Weekly Model Update Check — Juno (LAC-3589)
Checked
src-tauri/src/agent/providers/types.rsagainst the live Anthropic model-deprecations and models-overview pages.Finding: three models in the legacy tier are now retired (return 404)
Verified against the live model-deprecations page:
claude-opus-4-1-20250805claude-opus-4-20250514claude-sonnet-4-20250514Requests to retired models fail with 404, so leaving them in the selector let a user pick a model that hard-fails on every request. This PR removes their
model_idsconstants andModelDefinitionentries.Changes
CLAUDE_OPUS_4_1,CLAUDE_OPUS_4,CLAUDE_SONNET_4constants + theirModelDefinitionentries.claude-3-5-sonnet-20241022) — no active model exercises that branch anymore, and the removed constant is no longer available.Verified still correct (no change needed)
claude-*IDs (selectors fetch viainvoke("get_provider_models")), so consistency is automatic.Verification
rustfmt --checkontypes.rs: cleancargo test --lib agent::providers::types: 13/13 pass (incl.test_opus_5_is_default_anthropic_model)🤖 Generated with Claude Code