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 branch 'litellm_internal_staging' into litellm_fix_codex_responses_namespace_tools
Mateo Wangae2a1f4abace
diff --cc litellm/responses/litellm_completion_transformation/transformation.pyindex 1854ce6866a,b2d065ea23b..40a45f59d36--- a/litellm/responses/litellm_completion_transformation/transformation.py+++ b/litellm/responses/litellm_completion_transformation/transformation.py@@@ -4,9 -4,8 +4,18 @@@ Handles transforming from Responses APimport jsonimport re- from collections.abc import Mapping, Sequence+ from collections.abc import Iterator, Mapping, Sequence-from typing import TYPE_CHECKING, Any, Final, Literal, Protocol, cast, runtime_checkable+from types import MappingProxyType- from typing import Any, Final, Literal, TypeAlias, cast++from typing import (++ TYPE_CHECKING,++ Any,++ Final,++ Literal,++ Protocol,++ TypeAlias,++ cast,++ runtime_checkable,++)from openai.types.chat.chat_completion_named_tool_choice_param import (ChatCompletionNamedToolChoiceParam,@@@ -79,13 -77,13 +89,18 @@@ from .custom_tools importextract_custom_tool_names,is_custom_tool_call,unwrap_custom_tool_arguments,+ validated_allowed_callers,)+NamespaceNameMap: TypeAlias = Mapping[str, tuple[str, str]]+NamespaceTool: TypeAlias = Mapping[str, object]+ResponseTools: TypeAlias = Sequence[Mapping[str, object]] | None++ if TYPE_CHECKING:+ from openai.types.responses.response_apply_patch_tool_call import (+ ResponseApplyPatchToolCall,+ )+########### Initialize Classes used for Responses API ###########TOOL_CALLS_CACHE: Final = InMemoryCache()