Skip to content

Commit 326ff09

Browse files
committed
Fix parallel_tool_calls when False
1 parent 13abb68 commit 326ff09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/agents/models/openai_responses.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ async def _fetch_response(
208208
list_input = ItemHelpers.input_to_new_input_list(input)
209209

210210
parallel_tool_calls = (
211-
True if model_settings.parallel_tool_calls and tools and len(tools) > 0 else NOT_GIVEN
211+
True if model_settings.parallel_tool_calls and tools and len(tools) > 0
212+
else False if model_settings.parallel_tool_calls is False
213+
else NOT_GIVEN
212214
)
213215

214216
tool_choice = Converter.convert_tool_choice(model_settings.tool_choice)

0 commit comments

Comments
 (0)