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
refactor(responses): rename write-back helper out of the method's name
mateo-berri58c5223ab4b3
diff --git a/litellm/llms/openai/responses/guardrail_translation/handler.py b/litellm/llms/openai/responses/guardrail_translation/handler.pyindex e7a00a15a23..c676eaa7711 100644--- a/litellm/llms/openai/responses/guardrail_translation/handler.py+++ b/litellm/llms/openai/responses/guardrail_translation/handler.py@@ -264,7 +264,7 @@ def _patched_request_fields()-def _written_back_request_fields(+def _patch_or_convert_request_fields(raw_input: object,instructions: object,original_messages: Sequence[object],@@ -408,7 +408,7 @@ class OpenAIResponsesHandler(BaseTranslation):guardrailed: Final = guardrailed_inputs.get("structured_messages")if guardrailed is None or guardrailed is structured_messages:return None- return _written_back_request_fields(+ return _patch_or_convert_request_fields(data.get("input"),data.get("instructions"),structured_messages or (),