We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0176cc5 commit 3265a39Copy full SHA for 3265a39
src/api/providers/fetchers/openrouter.ts
@@ -78,7 +78,10 @@ export async function getOpenRouterModels(options?: ApiHandlerOptions) {
78
thinking: rawModel.id === "anthropic/claude-3.7-sonnet:thinking",
79
}
80
81
- // NOTE: This needs to be synced with api.ts/openrouter default model info.
+ // 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.
85
switch (true) {
86
case rawModel.id.startsWith("anthropic/claude-3.7-sonnet"):
87
modelInfo.supportsComputerUse = true
0 commit comments