Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

fix: route ollama models through ollama_chat so tool calling works (#562)

Rudra Dudhat11e5d1c2b3dd
diff --git a/strix/config/models.py b/strix/config/models.py
index f5826433..7f6227f3 100644
--- a/strix/config/models.py
+++ b/strix/config/models.py
@@ -39,6 +39,8 @@ class StrixProvider(MultiProvider):
prefix=prefix,
stripped_model_name=stripped_model_name,
)
+ if prefix == "ollama" and stripped_model_name:
+ return self._get_fallback_provider("litellm"), f"ollama_chat/{stripped_model_name}"
return self._get_fallback_provider("litellm"), original_model_name