1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

image generation wip

This commit is contained in:
Laura
2025-09-11 23:25:58 +02:00
parent 27dbd0e642
commit 1c4ff26378
10 changed files with 105 additions and 24 deletions

View File

@@ -18,6 +18,7 @@ type Model struct {
Vision bool `json:"-"`
JSON bool `json:"-"`
Tools bool `json:"-"`
Images bool `json:"-"`
}
var ModelMap = make(map[string]*Model)
@@ -89,5 +90,13 @@ func GetModelTags(model openrouter.Model, m *Model) {
}
}
for _, modality := range model.Architecture.OutputModalities {
if modality == "image" {
m.Images = true
m.Tags = append(m.Tags, "image")
}
}
sort.Strings(m.Tags)
}