Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(responses): annotate the tool_choice bridge test signature

Scott Wilson889c1f584a6b
diff --git a/tests/test_litellm/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py b/tests/test_litellm/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py
index 70563aa880a..c2484970ed9 100644
--- a/tests/test_litellm/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py
+++ b/tests/test_litellm/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py
@@ -3415,7 +3415,10 @@ def test_output_item_done_with_stream_map_keeps_empty_delta():
({"type": "function", "function": {"name": "get_weather"}}, {"type": "function", "name": "get_weather"}),
],
)
-async def test_acompletion_bridge_normalizes_tool_choice_on_the_wire(tool_choice, expected_wire_tool_choice):
+async def test_acompletion_bridge_normalizes_tool_choice_on_the_wire(
+ tool_choice: str | dict[str, object],
+ expected_wire_tool_choice: str | dict[str, str],
+) -> None:
"""Object-wrapped tool_choice must never reach /v1/responses.
Clients (Cursor, Claude Code via /v1/messages) send ``{"type": "auto"}``.