test(provider): centralize catalog model pins, add a delisting tripwire#91
Merged
Merged
Conversation
models.dev delisted claude-sonnet-4-20250514 on 2026-07-05 and ten provider tests hardcoding it failed at once with unrelated-looking errors. The pinned ids now live in two constants (SONNET/OPUS, currently claude-sonnet-4-6 and claude-opus-4-5) used everywhere, and a guard test runs first: when the catalog drops a pinned id it fails alone with 'update the SONNET/OPUS pins at the top of this file' instead of scattering failures across the suite.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
models.dev delisted
claude-sonnet-4-20250514this afternoon and 10 provider tests hardcoding that id failed at once (this broke main's Test check — the failures predate #90 and reproduce on earlier commits).SONNET= claude-sonnet-4-6,OPUS= claude-opus-4-5) used across whitelist/blacklist/getModel/defaultModel/small_model/variant tests — next drift is a one-line fix.Verified: provider file 69/69, full backend suite 853/853, typecheck clean.