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: anthropic Extra inputs are not permitted error

Yuta Saitoa1bceb840316
diff --git a/litellm/responses/main.py b/litellm/responses/main.py
index 8db6f4b9ffe..71d94287e82 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.get("aresponses", False) is True
+ _is_async = kwargs.pop("aresponses", False) is True
# Convert text_format to text parameter if provided
text = ResponsesAPIRequestUtils.convert_text_format_to_text_param(