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
style(responses_bridge): use dict.get in text merge helper
kerry92121242666f
diff --git a/litellm/completion_extras/litellm_responses_transformation/transformation.py b/litellm/completion_extras/litellm_responses_transformation/transformation.pyindex e1d915dca39..eaf7f47552c 100644--- a/litellm/completion_extras/litellm_responses_transformation/transformation.py+++ b/litellm/completion_extras/litellm_responses_transformation/transformation.py@@ -526,9 +526,7 @@ class LiteLLMResponsesTransformationHandler(CompletionTransformationBridge):def _merge_text(responses_api_request: "ResponsesAPIOptionalRequestParams", update: Mapping[str, object]) -> "ResponseText":- existing: Final = cast(- "dict[str, object]", responses_api_request["text"] if "text" in responses_api_request else {}- )+ existing: Final = cast("dict[str, object]", dict(responses_api_request).get("text") or {})return cast("ResponseText", {**existing, **update})def _build_sanitized_litellm_params(self, litellm_params: dict) -> dict[str, object]: