Skip to content

Devika is the first open-source implementation of an Agentic Software Engineer. Initially started as an open-source alternative to Devin.

Python

bug 550 : make sure the model_name with the ollama list (#551)

chisun-joung4a62feb782ac
diff --git a/src/llm/llm.py b/src/llm/llm.py
index 0026e1c..b7ad6a7 100644
--- a/src/llm/llm.py
+++ b/src/llm/llm.py
@@ -60,7 +60,7 @@ class LLM:
"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