Skip to content

Commit cf2c4d6

Browse files
committed
fix: add SambaNova case to useSelectedModel hook
1 parent bd001ab commit cf2c4d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import {
3434
litellmDefaultModelId,
3535
claudeCodeDefaultModelId,
3636
claudeCodeModels,
37+
sambaNovaModels,
38+
sambaNovaDefaultModelId,
3739
} from "@roo-code/types"
3840

3941
import type { RouterModels } from "@roo/api"
@@ -214,6 +216,11 @@ function getSelectedModel({
214216
const info = claudeCodeModels[id as keyof typeof claudeCodeModels]
215217
return { id, info: { ...openAiModelInfoSaneDefaults, ...info } }
216218
}
219+
case "sambanova": {
220+
const id = apiConfiguration.apiModelId ?? sambaNovaDefaultModelId
221+
const info = sambaNovaModels[id as keyof typeof sambaNovaModels]
222+
return { id, info }
223+
}
217224
// case "anthropic":
218225
// case "human-relay":
219226
// case "fake-ai":

0 commit comments

Comments
 (0)