Skip to content

Commit 3265a39

Browse files
authored
Update openrouter.ts
1 parent 0176cc5 commit 3265a39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/providers/fetchers/openrouter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ export async function getOpenRouterModels(options?: ApiHandlerOptions) {
7878
thinking: rawModel.id === "anthropic/claude-3.7-sonnet:thinking",
7979
}
8080

81-
// NOTE: This needs to be synced with api.ts/openrouter default model info.
81+
// Then OpenRouter model definition doesn't give us any hints about computer use,
82+
// so we need to set that manually.
83+
// The ideal `maxTokens` values are model dependent, but we should probably DRY
84+
// this up and use the values defined for the Anthropic providers.
8285
switch (true) {
8386
case rawModel.id.startsWith("anthropic/claude-3.7-sonnet"):
8487
modelInfo.supportsComputerUse = true

0 commit comments

Comments
 (0)