mirror of
https://github.com/coder/coder.git
synced 2026-11-02 05:23:10 +08:00
Implements: https://linear.app/codercom/issue/AIGOV-493/update-pricesjson-with-current-model-rates-before-cost-control-release Run `make gen/aibridge-prices` to regenerate `prices.json` from `models.dev`. This update: - adds support for the upstream `claude-opus-5` model; - removes older `openai` models that have been removed upstream, keeping us in sync with `models.dev`.
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.