mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
fix: add SambaNova case to useSelectedModel hook
This commit is contained in:
parent
bd001ab23e
commit
cf2c4d6650
1 changed files with 7 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ import {
|
|||
litellmDefaultModelId,
|
||||
claudeCodeDefaultModelId,
|
||||
claudeCodeModels,
|
||||
sambaNovaModels,
|
||||
sambaNovaDefaultModelId,
|
||||
} from "@roo-code/types"
|
||||
|
||||
import type { RouterModels } from "@roo/api"
|
||||
|
|
@ -214,6 +216,11 @@ function getSelectedModel({
|
|||
const info = claudeCodeModels[id as keyof typeof claudeCodeModels]
|
||||
return { id, info: { ...openAiModelInfoSaneDefaults, ...info } }
|
||||
}
|
||||
case "sambanova": {
|
||||
const id = apiConfiguration.apiModelId ?? sambaNovaDefaultModelId
|
||||
const info = sambaNovaModels[id as keyof typeof sambaNovaModels]
|
||||
return { id, info }
|
||||
}
|
||||
// case "anthropic":
|
||||
// case "human-relay":
|
||||
// case "fake-ai":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue