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
fix(bedrock_mantle): type the codex item dispatcher without Any
mateo-berrifd1dca05deb0
diff --git a/litellm/llms/bedrock_mantle/responses/transformation.py b/litellm/llms/bedrock_mantle/responses/transformation.pyindex 9068a641940..3e5dd4ff87d 100644--- a/litellm/llms/bedrock_mantle/responses/transformation.py+++ b/litellm/llms/bedrock_mantle/responses/transformation.py@@ -288,7 +288,7 @@ class BedrockMantleResponsesAPIConfig(BedrockMantleAuthMixin, OpenAIResponsesAPIreturn rewritten@classmethod- def _normalize_codex_input_item(cls, item: object) -> "tuple[Any, str | None]":+ def _normalize_codex_input_item(cls, item: object) -> "tuple[object, str | None]":"""Returns (normalized item or None to drop it, original type when rewritten)."""if not isinstance(item, dict):return item, None@@ -324,7 +324,8 @@ class BedrockMantleResponsesAPIConfig(BedrockMantleAuthMixin, OpenAIResponsesAPI"Bedrock Mantle Responses API: rewrote Codex input item type(s) %s that Mantle rejects.",rewritten_types,)- return [item for item, _ in normalized if item is not None] # mutable-ok: ResponseInputParam is a list+ kept: Final = [item for item, _ in normalized if item is not None] # mutable-ok: ResponseInputParam is a list+ return kept # pyright: ignore[reportReturnType] # Codex passthrough items sit outside the OpenAI input uniondef map_openai_params(self,