Compare commits

...

1 Commits

Author SHA1 Message Date
Saoud Rizwan 54c4b5b744 Add 200k context window variant for Claude Sonnet 4 to OpenRouter and Cline providers 2025-08-29 15:26:15 -07:00
@@ -110,6 +110,12 @@ export async function refreshOpenRouterModels(
switch (rawModel.id) {
case "anthropic/claude-sonnet-4":
// NOTE: we artificially restrict the context window to 200k to keep costs low for users, and have a :1m model variant created below for users that want to use the full 1m.
modelInfo.contextWindow = 200_000
modelInfo.supportsPromptCache = true
modelInfo.cacheWritesPrice = 3.75
modelInfo.cacheReadsPrice = 0.3
break
case "anthropic/claude-3-7-sonnet":
case "anthropic/claude-3-7-sonnet:beta":
case "anthropic/claude-3.7-sonnet":