fix(ai): correct opencode context windows for Claude Sonnet 4/4.5

fixes #1383
This commit is contained in:
Mario Zechner 2026-02-08 14:35:02 +01:00
parent e10a831e56
commit 2c3f624348
2 changed files with 10 additions and 6 deletions

View file

@ -5231,7 +5231,7 @@ export const MODELS = {
cacheRead: 0.3,
cacheWrite: 3.75,
},
contextWindow: 1000000,
contextWindow: 200000,
maxTokens: 64000,
} satisfies Model<"anthropic-messages">,
"claude-sonnet-4-5": {
@ -5248,7 +5248,7 @@ export const MODELS = {
cacheRead: 0.3,
cacheWrite: 3.75,
},
contextWindow: 1000000,
contextWindow: 200000,
maxTokens: 64000,
} satisfies Model<"anthropic-messages">,
"gemini-3-flash": {
@ -7336,9 +7336,9 @@ export const MODELS = {
reasoning: true,
input: ["text", "image"],
cost: {
input: 0.44999999999999996,
output: 2.25,
cacheRead: 0.075,
input: 0.3,
output: 1.5,
cacheRead: 0.049999999999999996,
cacheWrite: 0,
},
contextWindow: 262144,