chore: update model prices to include more providers (#27837)

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>
This commit is contained in:
Cian Johnston
2026-08-04 14:17:50 +01:00
committed by GitHub
co-authored by Susana Ferreira
parent 866eb970a4
commit 60161fd375
4 changed files with 6508 additions and 9 deletions
+3
View File
@@ -36,3 +36,6 @@ site/e2e/provisionerGenerated.ts linguist-generated=true
site/src/api/countriesGenerated.tsx linguist-generated=true
site/src/api/rbacresourcesGenerated.tsx linguist-generated=true
site/src/api/typesGenerated.ts linguist-generated=true
# AI Gateway prices
coderd/aibridge/prices/data/prices.json linguist-generated=true
+6480 -8
View File
File diff suppressed because it is too large Load Diff
+10 -1
View File
@@ -27,7 +27,16 @@ import (
// supportedProviders lists the providers we ship prices for. Adding a
// provider here is enough to include it on the next regeneration.
var supportedProviders = []string{"anthropic", "openai"}
var supportedProviders = []string{
"anthropic",
"azure",
"bedrock",
"copilot",
"google",
"openai",
"openrouter",
"vercel",
}
// upstreamProvider is the subset of a models.dev per-provider entry we read.
type upstreamProvider struct {
+15
View File
@@ -30,3 +30,18 @@ end
| .name = "Claude Mythos 5"
)
end
# Mapping of provider names on models.dev to our own names
# Ref. table definition for ai_provider_type
# amazon-bedrock -> bedrock
# github-copilot -> copilot
| if (has("amazon-bedrock") | not) then
error("overrides.jq: amazon-bedrock not present upstream; drop or update the rename")
else
.bedrock = ."amazon-bedrock" | del(."amazon-bedrock")
end
| if (has("github-copilot") | not) then
error("overrides.jq: github-copilot not present upstream; drop or update the rename")
else
.copilot = ."github-copilot" | del(."github-copilot")
end