fix(llm): omit parallel_tool_calls on tool-less requests

This commit is contained in:
Ahmed Allam
2026-08-09 15:44:16 +03:00
committed by Ahmed Allam
parent 597aae6715
commit 649a2e2140
6 changed files with 18 additions and 1 deletions
+10
View File
@@ -299,6 +299,16 @@ def test_make_model_settings_forces_required_for_anyllm_routed_openai_model() ->
assert settings.tool_choice == "required"
def test_make_model_settings_disables_parallel_tool_calls_by_default() -> None:
assert make_model_settings("none", model_name="gpt-4o").parallel_tool_calls is False
def test_make_model_settings_omits_parallel_tool_calls_without_tools() -> None:
settings = make_model_settings("none", model_name="gpt-4o", has_tools=False)
assert settings.parallel_tool_calls is None
def test_make_model_settings_sets_request_timeout() -> None:
settings = make_model_settings(
"none",