Skip to content

Commit d5eb25d

Browse files
committed
Only drop :latest from model list
I installed `qwen2:05b` in my Ollama and then noticed I could not ask it to use `qwen2`. Turns out the short name only works as a replacement for the default, aka `:latest`.
1 parent 632ac22 commit d5eb25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ollamaChat.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
endpoint = "http://localhost:11434/api/tags";
183183
response = webread(endpoint);
184184
mdls = string({response.models.name}).';
185-
baseMdls = unique(extractBefore(mdls,":"));
185+
baseMdls = unique(extractBefore(mdls,":latest"));
186186
% remove all those "mistral:latest", iff those are the only
187187
% model entries pointing at some model
188188
for base=baseMdls.'

0 commit comments

Comments
 (0)