mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
fix: route ollama models through ollama_chat so tool calling works (#562)
Co-authored-by: 0xallam <ahmed39652003@gmail.com>
This commit is contained in:
parent
cc23eeb65d
commit
11e5d1c2b3
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue