Skip to content

Commit 4a62feb

Browse files
authored
bug 550 : make sure the model_name with the ollama list (stitionai#551)
close stitionai#550
1 parent e0144c1 commit 4a62feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llm/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, model_id: str = None):
6060
"OLLAMA": []
6161
}
6262
if ollama.client:
63-
self.models["OLLAMA"] = [(model["name"].split(":")[0], model["name"]) for model in ollama.models]
63+
self.models["OLLAMA"] = [(model["name"], model["name"]) for model in ollama.models]
6464

6565
def list_models(self) -> dict:
6666
return self.models

0 commit comments

Comments
 (0)