mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix: add TARS case to useSelectedModel hook
This commit is contained in:
parent
e01730c4e6
commit
c52d3d4cf9
1 changed files with 7 additions and 0 deletions
|
|
@ -46,6 +46,8 @@ import {
|
|||
mainlandZAiModels,
|
||||
fireworksModels,
|
||||
fireworksDefaultModelId,
|
||||
tarsDefaultModelId,
|
||||
tarsDefaultModelInfo,
|
||||
} from "@roo-code/types"
|
||||
|
||||
import type { ModelRecord, RouterModels } from "@roo/api"
|
||||
|
|
@ -277,6 +279,11 @@ function getSelectedModel({
|
|||
const info = fireworksModels[id as keyof typeof fireworksModels]
|
||||
return { id, info }
|
||||
}
|
||||
case "tars": {
|
||||
const id = apiConfiguration.tarsModelId ?? tarsDefaultModelId
|
||||
const info = tarsDefaultModelInfo
|
||||
return { id, info }
|
||||
}
|
||||
// case "anthropic":
|
||||
// case "human-relay":
|
||||
// case "fake-ai":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue