diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py index a5ad86ddfb6..876ee87ade3 100644 --- a/litellm/responses/litellm_completion_transformation/transformation.py +++ b/litellm/responses/litellm_completion_transformation/transformation.py @@ -168,7 +168,7 @@ class LiteLLMCompletionResponsesConfig: @staticmethod def _transform_tool_choice_for_responses_api_response( - tool_choice: Any, + tool_choice: str | dict[str, Any] | None, ) -> str | dict[str, Any] | None: """ Inverse of ``_transform_tool_choice``: normalizes tool_choice into the