mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 08:00:59 +00:00
feat(ai): add claude sonnet 4.6 model fallback
This commit is contained in:
parent
65a3b2872d
commit
0245b524e9
1 changed files with 21 additions and 0 deletions
|
|
@ -708,6 +708,27 @@ async function generateModels() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add missing Claude Sonnet 4.6
|
||||||
|
if (!allModels.some(m => m.provider === "anthropic" && m.id === "claude-sonnet-4-6")) {
|
||||||
|
allModels.push({
|
||||||
|
id: "claude-sonnet-4-6",
|
||||||
|
name: "Claude Sonnet 4.6",
|
||||||
|
api: "anthropic-messages",
|
||||||
|
baseUrl: "https://api.anthropic.com",
|
||||||
|
provider: "anthropic",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text", "image"],
|
||||||
|
cost: {
|
||||||
|
input: 3,
|
||||||
|
output: 15,
|
||||||
|
cacheRead: 0.3,
|
||||||
|
cacheWrite: 3.75,
|
||||||
|
},
|
||||||
|
contextWindow: 200000,
|
||||||
|
maxTokens: 64000,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Add missing gpt models
|
// Add missing gpt models
|
||||||
if (!allModels.some(m => m.provider === "openai" && m.id === "gpt-5-chat-latest")) {
|
if (!allModels.some(m => m.provider === "openai" && m.id === "gpt-5-chat-latest")) {
|
||||||
allModels.push({
|
allModels.push({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue