Skip to content

Commit 63cecf8

Browse files
committed
Support 128k max tokens for openrouter thinking
1 parent 6cf4202 commit 63cecf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/providers/__tests__/openrouter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe("OpenRouterHandler", () => {
7272
openRouterModelId: "test-model",
7373
openRouterModelInfo: {
7474
...mockOpenRouterModelInfo,
75-
maxTokens: 64_000,
75+
maxTokens: 128_000,
7676
thinking: true,
7777
},
7878
modelMaxTokens: 32_768,

src/api/providers/openrouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export async function getOpenRouterModels() {
263263
modelInfo.supportsPromptCache = true
264264
modelInfo.cacheWritesPrice = 3.75
265265
modelInfo.cacheReadsPrice = 0.3
266-
modelInfo.maxTokens = rawModel.id === "anthropic/claude-3.7-sonnet:thinking" ? 64_000 : 16_384
266+
modelInfo.maxTokens = rawModel.id === "anthropic/claude-3.7-sonnet:thinking" ? 128_000 : 16_384
267267
break
268268
case rawModel.id.startsWith("anthropic/claude-3.5-sonnet-20240620"):
269269
modelInfo.supportsPromptCache = true

0 commit comments

Comments
 (0)