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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
transform_responses_api_request
Ishaan Jaff55115bf5204e
diff --git a/litellm/llms/base_llm/responses/transformation.py b/litellm/llms/base_llm/responses/transformation.pyindex 53a7a212903..8e0a1f5285d 100644--- a/litellm/llms/base_llm/responses/transformation.py+++ b/litellm/llms/base_llm/responses/transformation.py@@ -97,7 +97,7 @@ class BaseResponsesAPIConfig(ABC):response_api_optional_request_params: Dict,litellm_params: GenericLiteLLMParams,headers: dict,- ) -> ResponsesAPIRequestParams:+ ) -> Dict:pass@abstractmethoddiff --git a/litellm/llms/openai/responses/transformation.py b/litellm/llms/openai/responses/transformation.pyindex 891b8849dbd..e062c0c9fa6 100644--- a/litellm/llms/openai/responses/transformation.py+++ b/litellm/llms/openai/responses/transformation.py@@ -65,10 +65,12 @@ class OpenAIResponsesAPIConfig(BaseResponsesAPIConfig):response_api_optional_request_params: Dict,litellm_params: GenericLiteLLMParams,headers: dict,- ) -> ResponsesAPIRequestParams:+ ) -> Dict:"""No transform applied since inputs are in OpenAI spec already"""- return ResponsesAPIRequestParams(- model=model, input=input, **response_api_optional_request_params+ return dict(+ ResponsesAPIRequestParams(+ model=model, input=input, **response_api_optional_request_params+ ))def transform_response_api_response(