mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
co-authored by
Susana Ferreira
parent
866eb970a4
commit
60161fd375
@@ -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
|
||||
|
||||
Generated
+6480
-8
File diff suppressed because it is too large
Load Diff
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user