Fix model listing logic

This commit is contained in:
Ohad Livne 2025-12-03 18:29:05 +02:00
parent e7bd7fc24f
commit 883968b8aa
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -318,7 +318,7 @@
(tags-payload (nth 1 (split-string raw-response "\n\n"))) (tags-payload (nth 1 (split-string raw-response "\n\n")))
(models (gethash "models" (json-parse-string tags-payload))) (models (gethash "models" (json-parse-string tags-payload)))
(model-names (mapcar (lambda (model) (gethash "name" model)) models))) (model-names (mapcar (lambda (model) (gethash "name" model)) models)))
model-names)) (mapcar #'intern model-names)))
(defun enrich-ollama-models (available library) (defun enrich-ollama-models (available library)
"Enrich the available models with metadata from the library of known models." "Enrich the available models with metadata from the library of known models."