fix(ai): add temporary Anthropic Opus 4.7 model override
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user