Skip to content

Commit 221dfc9

Browse files
Update webview-ui/src/components/ui/hooks/useSelectedModel.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent e214faa commit 221dfc9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ function getSelectedModel({
232232
return { id, info }
233233
}
234234
case "deepseek": {
235-
const id = getValidatedModelId(apiConfiguration.apiModelId, routerModels.deepseek, defaultModelId)
235+
const availableModels = routerModels.deepseek
236+
? { ...deepSeekModels, ...routerModels.deepseek }
237+
: deepSeekModels
238+
const id = getValidatedModelId(apiConfiguration.apiModelId, availableModels, defaultModelId)
236239
const routerInfo = routerModels.deepseek?.[id]
237240
const staticInfo = deepSeekModels[id as keyof typeof deepSeekModels]
238241
return { id, info: routerInfo ?? staticInfo }

0 commit comments

Comments
 (0)