Skip to content

Commit

Permalink
bug 550 : make sure the model_name with the ollama list (stitionai#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
chisun-joung authored May 15, 2024
1 parent e0144c1 commit 4a62feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, model_id: str = None):
"OLLAMA": []
}
if ollama.client:
self.models["OLLAMA"] = [(model["name"].split(":")[0], model["name"]) for model in ollama.models]
self.models["OLLAMA"] = [(model["name"], model["name"]) for model in ollama.models]

def list_models(self) -> dict:
return self.models
Expand Down

0 comments on commit 4a62feb

Please sign in to comment.