From c3d0dd6897e94d30f680a24cc008c75335cee4f0 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Mon, 12 Jan 2026 09:33:54 +0900 Subject: [PATCH] fix: add aresponses litellm_params --- litellm/responses/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/responses/main.py b/litellm/responses/main.py index 07fc3cb02cc..8db6f4b9ffe 100644 --- a/litellm/responses/main.py +++ b/litellm/responses/main.py @@ -543,7 +543,7 @@ def responses( try: litellm_logging_obj: LiteLLMLoggingObj = kwargs.get("litellm_logging_obj") # type: ignore litellm_call_id: Optional[str] = kwargs.get("litellm_call_id", None) - _is_async = kwargs.pop("aresponses", False) is True + _is_async = kwargs.get("aresponses", False) is True # Convert text_format to text parameter if provided text = ResponsesAPIRequestUtils.convert_text_format_to_text_param( @@ -668,6 +668,7 @@ def responses( optional_params=dict(responses_api_request_params), litellm_params={ **responses_api_request_params, + "aresponses": _is_async, "litellm_call_id": litellm_call_id, "metadata": metadata, },