fix(ai): correct Bedrock Claude 4.6 context window to 200k
Bedrock Claude Opus 4.6 and Sonnet 4.6 models have 200k context window, not 1M. Removed incorrect overrides that were forcing these models to 1M. The native Anthropic API models correctly remain at 1M. closes #2305
This commit is contained in:
@@ -665,10 +665,6 @@ async function generateModels() {
|
||||
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 = 1000000;
|
||||
}
|
||||
if (candidate.provider === "amazon-bedrock" && candidate.id.includes("anthropic.claude-sonnet-4-6")) {
|
||||
candidate.contextWindow = 1000000;
|
||||
}
|
||||
if (
|
||||
(candidate.provider === "anthropic" ||
|
||||
@@ -682,12 +678,7 @@ async function generateModels() {
|
||||
) {
|
||||
candidate.contextWindow = 1000000;
|
||||
}
|
||||
if (
|
||||
candidate.provider === "google-antigravity" &&
|
||||
(candidate.id === "claude-opus-4-6-thinking" || candidate.id === "claude-sonnet-4-6")
|
||||
) {
|
||||
candidate.contextWindow = 1000000;
|
||||
}
|
||||
|
||||
// OpenCode variants list Claude Sonnet 4/4.5 with 1M context, actual limit is 200K
|
||||
if (
|
||||
(candidate.provider === "opencode" || candidate.provider === "opencode-go") &&
|
||||
@@ -734,7 +725,7 @@ async function generateModels() {
|
||||
cacheRead: 0.5,
|
||||
cacheWrite: 6.25,
|
||||
},
|
||||
contextWindow: 1000000,
|
||||
contextWindow: 200000,
|
||||
maxTokens: 128000,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user