Fix parallel_tool_calls when False
This commit is contained in:
parent
13abb6826d
commit
326ff09127
1 changed files with 3 additions and 1 deletions
|
|
@ -208,7 +208,9 @@ class OpenAIResponsesModel(Model):
|
||||||
list_input = ItemHelpers.input_to_new_input_list(input)
|
list_input = ItemHelpers.input_to_new_input_list(input)
|
||||||
|
|
||||||
parallel_tool_calls = (
|
parallel_tool_calls = (
|
||||||
True if model_settings.parallel_tool_calls and tools and len(tools) > 0 else NOT_GIVEN
|
True if model_settings.parallel_tool_calls and tools and len(tools) > 0
|
||||||
|
else False if model_settings.parallel_tool_calls is False
|
||||||
|
else NOT_GIVEN
|
||||||
)
|
)
|
||||||
|
|
||||||
tool_choice = Converter.convert_tool_choice(model_settings.tool_choice)
|
tool_choice = Converter.convert_tool_choice(model_settings.tool_choice)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue