Skip to content

chore: update model prices to include more providers - #27837

Merged
johnstcn merged 4 commits into
mainfrom
cj/more-model-prices
Aug 4, 2026
Merged

chore: update model prices to include more providers#27837
johnstcn merged 4 commits into
mainfrom
cj/more-model-prices

Conversation

@johnstcn

@johnstcn johnstcn commented Aug 4, 2026

Copy link
Copy Markdown
Member

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.

@johnstcn johnstcn self-assigned this Aug 4, 2026
@johnstcn
johnstcn marked this pull request as ready for review August 4, 2026 12:02
Copilot AI review requested due to automatic review settings August 4, 2026 12:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 supportedProviders in scripts/aibridgepricesgen to 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.json and 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.

@johnstcn
johnstcn requested a review from ssncferreira August 4, 2026 12:09

@ssncferreira ssncferreira left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 it would be nice to know how many price rows are added with this change

Comment thread .gitattributes Outdated
)
end

# Mapping of provider names on models.dev to our own names

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice ⭐ this is easier than I thought 😅

🍸

Co-authored-by: Susana Ferreira <susana@coder.com>
@johnstcn

johnstcn commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

LGTM 👍 it would be nice to know how many price rows are added with this change

809

@johnstcn
johnstcn merged commit 60161fd into main Aug 4, 2026
28 checks passed
@johnstcn
johnstcn deleted the cj/more-model-prices branch August 4, 2026 13:17
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 4, 2026
@johnstcn

johnstcn commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

AIGOV-571

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants