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 a417819 commit 14fbf0bCopy full SHA for 14fbf0b
webview-ui/src/components/ui/hooks/useSelectedModel.ts
@@ -367,6 +367,18 @@ function getSelectedModel({
367
const info = routerModels["vercel-ai-gateway"]?.[id]
368
return { id, info }
369
}
370
+ case "openai-compatible": {
371
+ // OpenAI Compatible provider uses custom configuration
372
+ const id = apiConfiguration.apiModelId ?? "default"
373
+ // Basic model info for OpenAI compatible APIs
374
+ const info: ModelInfo = {
375
+ maxTokens: 128000,
376
+ contextWindow: 128000,
377
+ supportsPromptCache: false,
378
+ supportsImages: false,
379
+ }
380
+ return { id, info }
381
382
// case "anthropic":
383
// case "human-relay":
384
// case "fake-ai":
0 commit comments