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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user