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

Co-authored-by: 0xallam <ahmed39652003@gmail.com>
This commit is contained in:
Rudra Dudhat 2026-06-16 06:09:21 +05:30 committed by GitHub
parent cc23eeb65d
commit 11e5d1c2b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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