mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-28 21:05:17 +02:00
Don't pass thorugh parallel_tool_calls for o-family models
This commit is contained in:
@@ -434,7 +434,17 @@ class DefaultMultiLLM(LLM):
|
|||||||
# or else OpenAI throws an error
|
# or else OpenAI throws an error
|
||||||
**(
|
**(
|
||||||
{"parallel_tool_calls": False}
|
{"parallel_tool_calls": False}
|
||||||
if tools and self.config.model_name != "o3-mini"
|
if tools
|
||||||
|
and self.config.model_name
|
||||||
|
not in [
|
||||||
|
"o3-mini",
|
||||||
|
"o3-preview",
|
||||||
|
"o1",
|
||||||
|
"o1-preview",
|
||||||
|
"o1-mini",
|
||||||
|
"o1-mini-2024-09-12",
|
||||||
|
"o3-mini-2025-01-31",
|
||||||
|
]
|
||||||
else {}
|
else {}
|
||||||
), # TODO: remove once LITELLM has patched
|
), # TODO: remove once LITELLM has patched
|
||||||
**(
|
**(
|
||||||
|
Reference in New Issue
Block a user