mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
feat: update OpenRouter API to support input/output modalities and filter image generation models (#7492)
This commit is contained in:
parent
09d8ff770a
commit
1dabac2af7
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ export const getOpenRouterModels = async (): Promise<OpenRouterModelRecord> => {
|
|||
|
||||
return result.data.data
|
||||
.filter((rawModel) => {
|
||||
// Skip image generation models (models that output images).
|
||||
// Skip image generation models (models that output images)
|
||||
return !rawModel.architecture?.output_modalities?.includes("image")
|
||||
})
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue