mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: add openai-compatible case to UI hook
This commit is contained in:
parent
a417819d2d
commit
14fbf0bb18
1 changed files with 12 additions and 0 deletions
|
|
@ -367,6 +367,18 @@ function getSelectedModel({
|
|||
const info = routerModels["vercel-ai-gateway"]?.[id]
|
||||
return { id, info }
|
||||
}
|
||||
case "openai-compatible": {
|
||||
// OpenAI Compatible provider uses custom configuration
|
||||
const id = apiConfiguration.apiModelId ?? "default"
|
||||
// Basic model info for OpenAI compatible APIs
|
||||
const info: ModelInfo = {
|
||||
maxTokens: 128000,
|
||||
contextWindow: 128000,
|
||||
supportsPromptCache: false,
|
||||
supportsImages: false,
|
||||
}
|
||||
return { id, info }
|
||||
}
|
||||
// case "anthropic":
|
||||
// case "human-relay":
|
||||
// case "fake-ai":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue