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

auto-update model list and show creation date

This commit is contained in:
Laura
2025-09-28 00:12:50 +02:00
parent f7b43fb559
commit 6bede7483d
6 changed files with 73 additions and 16 deletions

View File

@@ -101,8 +101,8 @@ func (r *Request) Parse() (*openrouter.ChatCompletionRequest, int, error) {
toolIndex int
)
model, ok := ModelMap[r.Model]
if !ok {
model := GetModel(r.Model)
if model == nil {
return nil, 0, fmt.Errorf("unknown model: %q", r.Model)
}