From c48c870332a5bb4e5561b443336eedd5ef31f605 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Tue, 7 Oct 2025 01:30:25 +0000 Subject: [PATCH] fix: update webview-ui to handle openai-compatible provider --- webview-ui/src/components/ui/hooks/useSelectedModel.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/components/ui/hooks/useSelectedModel.ts b/webview-ui/src/components/ui/hooks/useSelectedModel.ts index 0d0514b4d6..d176f2738a 100644 --- a/webview-ui/src/components/ui/hooks/useSelectedModel.ts +++ b/webview-ui/src/components/ui/hooks/useSelectedModel.ts @@ -255,7 +255,8 @@ function getSelectedModel({ const info = mistralModels[id as keyof typeof mistralModels] return { id, info } } - case "openai": { + case "openai": + case "openai-compatible": { const id = apiConfiguration.openAiModelId ?? "" const info = apiConfiguration?.openAiCustomModelInfo ?? openAiModelInfoSaneDefaults return { id, info } @@ -360,7 +361,7 @@ function getSelectedModel({ // case "human-relay": // case "fake-ai": default: { - provider satisfies "anthropic" | "gemini-cli" | "qwen-code" | "human-relay" | "fake-ai" + provider satisfies "anthropic" | "gemini-cli" | "human-relay" | "fake-ai" const id = apiConfiguration.apiModelId ?? anthropicDefaultModelId const baseInfo = anthropicModels[id as keyof typeof anthropicModels]