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: address review feedback on Any reduction
mateo-berrie46c816ec7b4
diff --git a/litellm/integrations/dynamodb.py b/litellm/integrations/dynamodb.pyindex 3401ced4efb..3fbbfe91ddf 100644--- a/litellm/integrations/dynamodb.py+++ b/litellm/integrations/dynamodb.py@@ -11,14 +11,10 @@ from litellm._uuid import uuidclass _DynamoTable(Protocol):- """The one boto3 DynamoDB table call this logger makes."""-def put_item(self, *, Item: Mapping[str, object]) -> object: ...class _DynamoResource(Protocol):- """The one boto3 DynamoDB resource call this logger makes."""-def Table(self, name: str) -> _DynamoTable: ...diff --git a/litellm/integrations/otel/mount.py b/litellm/integrations/otel/mount.pyindex 776d8722d14..9340f6e9e15 100644--- a/litellm/integrations/otel/mount.py+++ b/litellm/integrations/otel/mount.py@@ -69,8 +69,6 @@ PASSTHROUGH_PREFIXES: Final = frozenset(class _RenameableSpan(Protocol):- """The span surface the passthrough naming hook drives."""-def is_recording(self) -> bool: ...def update_name(self, name: str) -> None: ...diff --git a/litellm/llms/hosted_vllm/chat/transformation.py b/litellm/llms/hosted_vllm/chat/transformation.pyindex 92bc857e385..32c60bd01b5 100644--- a/litellm/llms/hosted_vllm/chat/transformation.py+++ b/litellm/llms/hosted_vllm/chat/transformation.py@@ -4,7 +4,7 @@ Translate from OpenAI's `/v1/chat/completions` to VLLM's `/v1/chat/completions`import jsonfrom collections.abc import Coroutine-from typing import Any, Final, Literal, cast, overload+from typing import Final, Literal, cast, overloadfrom litellm.litellm_core_utils.prompt_templates.common_utils import (_get_image_mime_type_from_url,@@ -28,7 +28,7 @@ from ...openai.chat.gpt_transformation import OpenAIGPTConfigclass HostedVLLMChatConfig(OpenAIGPTConfig):- def _convert_custom_tools_to_function_tools(self, tools: list[dict[str, Any]]) -> list[dict[str, object]]:+ def _convert_custom_tools_to_function_tools(self, tools: list[dict[str, object]]) -> list[dict[str, object]]:"""vLLM chat completions currently accepts only OpenAI function tools.Convert custom tools into function tools so request validation does not fail.