Remove retired Anthropic model ids from selectable models#208
Open
nerualauren wants to merge 1 commit into
Open
Remove retired Anthropic model ids from selectable models#208nerualauren wants to merge 1 commit into
nerualauren wants to merge 1 commit into
Conversation
claude-sonnet-4-20250514, claude-opus-4-20250514, claude-3-7-sonnet-latest,
and claude-3-5-sonnet-latest now 404 from the Anthropic API. They remained
listed as selectable models in the backend allowlist and frontend picker.
Verified against GET /v1/models/{id}: the four above return 404; the
remaining five (sonnet-4-6, opus-4-6, haiku-4-5, sonnet-4-5-20250929,
opus-4-5-20251101) return 200.
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.
What
Removes four Anthropic model ids that now return 404 from the API from the selectable-model allowlists in both the backend (
api/src/stampy_chat/settings.py) and the web frontend picker (web/src/hooks/useSettings.ts):anthropic/claude-sonnet-4-20250514anthropic/claude-opus-4-20250514anthropic/claude-3-7-sonnet-latestanthropic/claude-3-5-sonnet-latestRemaining valid models:
claude-sonnet-4-6,claude-opus-4-6,claude-haiku-4-5,claude-sonnet-4-5-20250929,claude-opus-4-5-20251101.Why
Prod chat was down: every request with no explicit model fell back to
COMPLETIONS_MODEL=anthropic/claude-sonnet-4-20250514(set in prodapi/.env), and Anthropic has retired that id, so the backend 404'd on every chat. Already hotfixed live by pointingCOMPLETIONS_MODELatclaude-sonnet-4-6and restarting the backend, so prod is restored. This PR is the durable cleanup: the retired ids were still offered as selectable options, so anyone who picked one (or passed?model=<retired>) would keep hitting the 404.Verified
Each id checked against
GET /v1/models/{id}with the prod key: the four above return 404, the five kept return 200.webtypechecks clean (tscexit 0); backend imports fine and the env default (claude-sonnet-4-6) is in the trimmed allowlist.Note (out of scope)
The
stampy-uifrontend has the same retired ids in a compile-timeModeltype union, but it doesn't send a model by default (relies on the backend default), so those are inert. Minor cleanup for a separate PR to that repo.🤖 Generated with Claude Code