Skip to content

Commit dba32ef

Browse files
authored
Merge pull request #1338 from RooVetGit/openrouter_think_big
Support 128k max tokens for openrouter and vertex thinking
2 parents 6cf4202 + 2b7df5e commit dba32ef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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

src/shared/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ export const vertexModels = {
477477
outputPrice: 5,
478478
},
479479
"claude-3-7-sonnet@20250219:thinking": {
480-
maxTokens: 64_000,
480+
maxTokens: 128_000,
481481
contextWindow: 200_000,
482482
supportsImages: true,
483483
supportsComputerUse: true,

0 commit comments

Comments
 (0)