Skip to content

DeepTeam is a framework to red team LLMs and AI agents.

Fix OllamaModel initialize

fullmetalcache5358cf125772
diff --git a/deepteam/cli/model_callback.py b/deepteam/cli/model_callback.py
index df72a779..65e473ac 100644
--- a/deepteam/cli/model_callback.py
+++ b/deepteam/cli/model_callback.py
@@ -73,7 +73,7 @@ def load_model(spec: Union[str, Dict[str, Any], None]) -> DeepEvalBaseLLM:
if provider == "ollama":
return OllamaModel(
- model_name=model_name,
+ model=model_name,
base_url=spec.get("base_url", "http://localhost:11434"),
temperature=temperature,
)