fix(ai): add temporary Anthropic Opus 4.7 model override

This commit is contained in:
Armin Ronacher
2026-04-16 17:06:23 +02:00
parent e9ba9e2ebc
commit a91978cf19
2 changed files with 77 additions and 5 deletions

View File

@@ -769,6 +769,27 @@ async function generateModels() {
});
}
// Add missing Claude Opus 4.7
if (!allModels.some(m => m.provider === "anthropic" && m.id === "claude-opus-4-7")) {
allModels.push({
id: "claude-opus-4-7",
name: "Claude Opus 4.7",
api: "anthropic-messages",
baseUrl: "https://api.anthropic.com",
provider: "anthropic",
reasoning: true,
input: ["text", "image"],
cost: {
input: 5,
output: 25,
cacheRead: 0.5,
cacheWrite: 6.25,
},
contextWindow: 1000000,
maxTokens: 128000,
});
}
// Add missing Claude Sonnet 4.6
if (!allModels.some(m => m.provider === "anthropic" && m.id === "claude-sonnet-4-6")) {
allModels.push({