chore: ship prices for all AI Governance proivder types - #28102
Conversation
Adds the full set of supported provider types to `scripts/aibridgepricesgen` and updates stored model prices. Notes: * We need to rename a few keys from models.dev JSON to match our internal provider types. * `prices.json` is now marked as generated. --------- Co-authored-by: Susana Ferreira <susana@coder.com> (cherry picked from commit 60161fd)
|
👋 Hey @johnstcn! This PR is targeting the Only bug fixes should be cherry-picked to release branches. If this is a bug fix, please update the PR title to match the conventional commit format: If this is not a bug fix, it likely should not target a release branch. |
There was a problem hiding this comment.
reviewer note: you can probably skip reviewing this
There was a problem hiding this comment.
reviewer note: you can definitely skip reviewing this
There was a problem hiding this comment.
reviewer note: this is so that prices show up automatically in the Agents UI when you add a model
DanielleMaywood
left a comment
There was a problem hiding this comment.
Approval for agents side of it. Will defer approval of ai gateway to @ssncferreira
There was a problem hiding this comment.
Pull request overview
Ships an expanded, generated AI model price book and frontend known-model catalog so AI Governance pricing and admin UX cover additional configured provider types beyond native OpenAI and Anthropic.
Changes:
- Expand
aibridgepricesgento include additional provider types (Azure, Bedrock, Copilot, Google, OpenRouter, Vercel) in generated outputs. - Add provider-key renames in the jq patch step to align models.dev provider keys with internal
ai_provider_typevalues. - Extend the ChatModelAdminPanel known-models catalog and adjust the unit test to keep “unsupported provider returns empty list” coverage.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| site/src/pages/AgentsPage/components/ChatModelAdminPanel/knownModels/knownModelsGenerated.json | Regenerated known-model catalog including new provider sections and updated prices. |
| site/src/pages/AgentsPage/components/ChatModelAdminPanel/knownModels/index.test.ts | Updates the “unsupported provider” case now that Azure is supported in the catalog. |
| scripts/aibridgepricesgen/overrides.jq | Adds upstream provider key renames to match internal provider type names. |
| scripts/aibridgepricesgen/main.go | Expands the set of providers included in generated pricing and catalog outputs. |
| scripts/aibridgepricesgen/curation.json | Extends curated models across additional providers for the frontend catalog generation. |
| .gitattributes | Marks generated AI price and catalog artifacts as linguist-generated. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Includes the two below commits:
Note that this also requires db88ec3 (#27836) and 5efa7ab (#27923)
ℹ️ Note for reviewers: this PR may look horrible, but most of it is just JSON. You don't have to review that.