fix(ai,coding-agent): fix Bedrock Opus 4.6 model IDs, cache pricing, and add EU profile

- Remove :0 suffix from Opus 4.6 Bedrock model IDs (not valid for this model)
- Fix us/eu Opus 4.6 cache pricing (0.5/6.25 instead of 1.5/18.75)
- Add missing eu.anthropic.claude-opus-4-6-v1 inference profile
- Fix coding-agent default Bedrock model ID to match catalog
This commit is contained in:
Mario Zechner 2026-02-05 22:21:22 +01:00
parent 62385e2230
commit 712d0c6ada
5 changed files with 50 additions and 30 deletions

View file

@ -642,6 +642,37 @@ async function generateModels() {
opus45.cost.cacheWrite = 6.25;
}
// Temporary Bedrock overrides until https://github.com/anomalyco/models.dev/pull/816 is merged.
// 1. Fix incorrect Opus 4.6 Bedrock metadata
for (const candidate of allModels) {
if (candidate.provider === "amazon-bedrock" && candidate.id.includes("anthropic.claude-opus-4-6-v1")) {
candidate.cost.cacheRead = 0.5;
candidate.cost.cacheWrite = 6.25;
candidate.contextWindow = 200000;
}
}
// 2. Add missing EU Opus 4.6 profile
if (!allModels.some((m) => m.provider === "amazon-bedrock" && m.id === "eu.anthropic.claude-opus-4-6-v1")) {
allModels.push({
id: "eu.anthropic.claude-opus-4-6-v1",
name: "Claude Opus 4.6 (EU)",
api: "bedrock-converse-stream",
provider: "amazon-bedrock",
baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
reasoning: true,
input: ["text", "image"],
cost: {
input: 5,
output: 25,
cacheRead: 0.5,
cacheWrite: 6.25,
},
contextWindow: 200000,
maxTokens: 128000,
});
}
// Add missing Claude Opus 4.6
if (!allModels.some(m => m.provider === "anthropic" && m.id === "claude-opus-4-6")) {
allModels.push({