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]

fix: add aresponses litellm_params

Yuta Saitoc3d0dd6897e9
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,
},