chore: update model prices to include more providers - #27837
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the AI Bridge model price generator to include additional provider types supported by the backend, regenerates the embedded model price seed data from upstream models.dev, and marks the resulting price seed as a generated file for GitHub linguist.
Changes:
- Expanded
supportedProvidersinscripts/aibridgepricesgento generate prices for Azure, Bedrock, Copilot, Google, OpenRouter, and Vercel in addition to Anthropic and OpenAI. - Added jq overrides to rename upstream provider keys (
amazon-bedrock,github-copilot) to the provider type identifiers used in this repo (bedrock,copilot). - Regenerated
coderd/aibridge/prices/data/prices.jsonand marked it as generated via.gitattributes.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/aibridgepricesgen/overrides.jq | Adds upstream-to-internal provider key renames for Bedrock and Copilot before generation. |
| scripts/aibridgepricesgen/main.go | Expands the set of providers included in the next price regeneration. |
| coderd/aibridge/prices/data/prices.json | Regenerated embedded price seed to include models/prices for additional providers. |
| .gitattributes | Marks the price seed JSON as a generated file for linguist. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ssncferreira
left a comment
There was a problem hiding this comment.
LGTM 👍 it would be nice to know how many price rows are added with this change
| ) | ||
| end | ||
|
|
||
| # Mapping of provider names on models.dev to our own names |
There was a problem hiding this comment.
Nice ⭐ this is easier than I thought 😅
🍸 Co-authored-by: Susana Ferreira <susana@coder.com>
809 |
|
AIGOV-571 |
Adds the full set of supported provider types to
scripts/aibridgepricesgenand updates stored model prices.Notes:
prices.jsonis now marked as generated.