mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-02 07:13:02 +00:00
test(anthropic-messages): name the parallel_tool_calls cases with ids instead of comments
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
a465382ac6
commit
34353d15d4
2 changed files with 10 additions and 3 deletions
|
|
@ -5537,11 +5537,18 @@ async def test_chat_bridge_tool_result_text_block_without_text_reaches_the_model
|
|||
({"type": "auto", "disable_parallel_tool_use": True}, "openai/gpt-oss-120b", "groq", False),
|
||||
({"type": "auto", "disable_parallel_tool_use": False}, "gpt-5.4", "openai", None),
|
||||
({"type": "auto"}, "gpt-5.4", "openai", None),
|
||||
# cohere_chat declares no parallel_tool_calls: the flag stays behind instead of raising UnsupportedParamsError
|
||||
({"type": "auto", "disable_parallel_tool_use": True}, "command-a-03-2025", "cohere_chat", None),
|
||||
# no resolved provider (logging and guardrail callers): the flag stays behind as before
|
||||
({"type": "auto", "disable_parallel_tool_use": True}, "gpt-5.4", None, None),
|
||||
],
|
||||
ids=[
|
||||
"openai-auto-disabled",
|
||||
"openai-any-disabled",
|
||||
"groq-auto-disabled",
|
||||
"openai-auto-enabled",
|
||||
"openai-auto-omitted",
|
||||
"cohere-declares-no-parallel-tool-calls-stays-behind",
|
||||
"no-provider-stays-behind",
|
||||
],
|
||||
)
|
||||
def test_translate_anthropic_to_openai_disable_parallel_tool_use_sets_parallel_tool_calls(
|
||||
tool_choice: dict[str, object],
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@ def test_build_responses_kwargs_never_asks_the_nested_call_to_replay_a_stream():
|
|||
[
|
||||
("openai/gpt-5.6-luna", "openai", False),
|
||||
("azure/gpt-5.6-luna", "azure", False),
|
||||
# Perplexity's Responses API declares no parallel_tool_calls: the flag stays behind instead of a 400
|
||||
("perplexity/sonar", "perplexity", None),
|
||||
],
|
||||
ids=["openai-declares", "azure-declares", "perplexity-declares-no-parallel-tool-calls-stays-behind"],
|
||||
)
|
||||
def test_build_responses_kwargs_maps_disable_parallel_tool_use_only_where_the_provider_declares_it(
|
||||
model: str, custom_llm_provider: str, expected_parallel_tool_calls: bool | None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue