fix: add TARS case to useSelectedModel hook

This commit is contained in:
Roo Code 2025-08-06 13:47:23 +00:00
parent e01730c4e6
commit c52d3d4cf9

View file

@ -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":