Files
coder/scripts
Mathias Fredriksson ec36cdefed chore: drop retired Claude Sonnet 4.5 from the known-models catalog (#32852)
Anthropic retired `claude-sonnet-4-5` on its own platforms on 2026-11-30
and models.dev dropped it from its `anthropic` provider. The
`overrides.jq` guard for its context-limit pin now fails `make
gen/aibridge-prices` before anything is generated, including the weekly
`aigateway-prices-refresh` run.

This drops the override, the curation entry, and only the Sonnet 4.5
entry from the generated catalog, as #32781 did for an earlier
delisting. Bedrock entries are unaffected. `prices.json` is unchanged;
seeding never deletes rows, so deployments keep their Sonnet 4.5 price
rows.

The shared `mockClaude` fixture moves to Claude Sonnet 4.6, which the
catalog lists at the same prices, because the `ModelForm` cost estimate
stories read catalog prices for it.

<details>
<summary>Decision log</summary>

- **Drop, not inject.** Injecting the model through `overrides.jq`, as
`claude-mythos-5` is, would keep suggesting a model whose requests now
return 404 on Anthropic. Bedrock still serves it as a deprecated model
and has its own entries.
- **No regeneration.** A fresh regeneration also brings upstream price
changes into the catalog (five curated OpenRouter entries, one with an
implausible `z-ai/glm-5.2` price) that `prices.json` would not have, and
the weekly refresh updates both from one snapshot. Once this merges, the
refresh can run again and updates both.
- **Fixture.** A separate fixture for the four catalog-backed stories
would leave the shared `mockClaude` pointing at a retired model.
- **Frontend review.** `frontend-deep-review` found the catalog-backed
stories, fixed by the fixture move. Its remaining TS5 and TS6 nits are
pre-existing patterns where only a model string changed.

</details>

> 🤖 Created with the help of Coder Agents.
2026-12-03 12:05:28 +02:00
..
…