fix: add aresponses litellm_params

This commit is contained in:
Yuta Saito 2026-01-12 09:33:54 +09:00
parent b71e30a8ac
commit c3d0dd6897

View file

@ -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,
},