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
Merge pull request #41561 from chopratejas/fix-responses-guardrail-custom-tool-output-writeback
ryan-crabbe-berria776d0d722a7
diff --cc litellm/llms/openai/responses/guardrail_translation/handler.pyindex 1ef1011591e,9739ca95089..ad8e29ad4ac--- a/litellm/llms/openai/responses/guardrail_translation/handler.py+++ b/litellm/llms/openai/responses/guardrail_translation/handler.py@@@ -236,9 -208,8 +236,9 @@@ _TOOL_CALL_PAYLOAD_EVENT_TYPES: Final_TOOL_CALL_PAYLOAD_DONE_EVENT_FIELDS)_OUTPUT_ITEM_EVENT_TYPES: Final = frozenset({"response.output_item.added", "response.output_item.done"})+_OUTPUT_TEXT_EVENT_TYPES: Final = frozenset({"response.output_text.delta", "response.output_text.done"})_PATCHABLE_ITEM_FIELDS: Final[Mapping[str, str]] = MappingProxyType(- {"function_call_output": "output", "message": "content"}+ {"function_call_output": "output", "custom_tool_call_output": "output", "message": "content"})_EMPTY_RESPONSES_REQUEST: Final[ResponsesAPIOptionalRequestParams] = {}