Skip to content

Commit c48c870

Browse files
committed
fix: update webview-ui to handle openai-compatible provider
1 parent c20ef5a commit c48c870

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webview-ui/src/components/ui/hooks/useSelectedModel.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ function getSelectedModel({
255255
const info = mistralModels[id as keyof typeof mistralModels]
256256
return { id, info }
257257
}
258-
case "openai": {
258+
case "openai":
259+
case "openai-compatible": {
259260
const id = apiConfiguration.openAiModelId ?? ""
260261
const info = apiConfiguration?.openAiCustomModelInfo ?? openAiModelInfoSaneDefaults
261262
return { id, info }
@@ -360,7 +361,7 @@ function getSelectedModel({
360361
// case "human-relay":
361362
// case "fake-ai":
362363
default: {
363-
provider satisfies "anthropic" | "gemini-cli" | "qwen-code" | "human-relay" | "fake-ai"
364+
provider satisfies "anthropic" | "gemini-cli" | "human-relay" | "fake-ai"
364365
const id = apiConfiguration.apiModelId ?? anthropicDefaultModelId
365366
const baseInfo = anthropicModels[id as keyof typeof anthropicModels]
366367

0 commit comments

Comments
 (0)