mirror of
https://github.com/coder/coder.git
synced 2026-11-01 04:47:17 +08:00
- Regenerates `prices.json` from models.dev. The seeder only upserts, so existing deployments keep delisted models. - Generate the frontend known-models catalog instead of hand-writing it. `make gen/aibridge-prices` fetches models.dev once - Moved patches to model definitions to separate `overrides.jq` which handles both `claude-sonnet-4-5` 200k context and 'aliasing' Fable 5 as Mythos 5. - Editorial choices of selection, order, aliases, and reasoning defaults live in `curation.json`. - Adds golden join tests with one error case per validation, a no-network drift test comparing curation to the checked-in artifact, and pinned invariants for the Anthropic thinking-mode split (the wrong side returns HTTP 400) and the sonnet-4-5 context pin. Adding a model is now one `curation.json` entry plus `make gen/aibridge-prices`, assuming it is present on models.dev. > This PR was authored by Coder Agents on Cian's behalf. --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
688 B
688 B
AI Bridge price seed
prices.json in this directory is generated by make gen/aibridge-prices and
embedded into the Coder binary at build time. Do not edit it manually; the
next regeneration will overwrite any changes.
The Make target fetches models.dev once into _gen/models-dev.json, applying
the upstream corrections in scripts/aibridgepricesgen/overrides.jq. Both
prices.json and the frontend known-models catalog at
site/src/pages/AgentsPage/components/ChatModelAdminPanel/knownModels/knownModelsGenerated.json
are generated from that single patched snapshot; the catalog is additionally
joined with the editorial curation in
scripts/aibridgepricesgen/curation.json.