mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Support 128k max tokens for openrouter thinking
This commit is contained in:
parent
6cf420235d
commit
63cecf8b22
2 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ describe("OpenRouterHandler", () => {
|
|||
openRouterModelId: "test-model",
|
||||
openRouterModelInfo: {
|
||||
...mockOpenRouterModelInfo,
|
||||
maxTokens: 64_000,
|
||||
maxTokens: 128_000,
|
||||
thinking: true,
|
||||
},
|
||||
modelMaxTokens: 32_768,
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ export async function getOpenRouterModels() {
|
|||
modelInfo.supportsPromptCache = true
|
||||
modelInfo.cacheWritesPrice = 3.75
|
||||
modelInfo.cacheReadsPrice = 0.3
|
||||
modelInfo.maxTokens = rawModel.id === "anthropic/claude-3.7-sonnet:thinking" ? 64_000 : 16_384
|
||||
modelInfo.maxTokens = rawModel.id === "anthropic/claude-3.7-sonnet:thinking" ? 128_000 : 16_384
|
||||
break
|
||||
case rawModel.id.startsWith("anthropic/claude-3.5-sonnet-20240620"):
|
||||
modelInfo.supportsPromptCache = true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue