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 import error
Sameer Kankuteb3fdb5cc6998
diff --git a/litellm/_logging.py b/litellm/_logging.pyindex 96035227f9d..82167776457 100644--- a/litellm/_logging.py+++ b/litellm/_logging.py@@ -9,7 +9,6 @@ from typing import Any, Dict, List, Optionalfrom litellm.litellm_core_utils.safe_json_dumps import safe_dumpsfrom litellm.litellm_core_utils.safe_json_loads import safe_json_loads-from litellm.litellm_core_utils.secret_redaction import redact_stringset_verbose = Falsediff --git a/litellm/llms/vertex_ai/gemini/transformation.py b/litellm/llms/vertex_ai/gemini/transformation.pyindex 0b4f900ef87..4d1b714db98 100644--- a/litellm/llms/vertex_ai/gemini/transformation.py+++ b/litellm/llms/vertex_ai/gemini/transformation.py@@ -222,7 +222,8 @@ def _process_gemini_media(if format:file_data = FileDataType(mime_type=format, file_uri=image_url)else:- file_data = FileDataType(file_uri=image_url)+ # Gemini Files API references can be passed through as URI-only.+ file_data = cast(FileDataType, {"file_uri": image_url})part = {"file_data": file_data}return _apply_gemini_3_metadata(part, model, media_resolution_enum, video_metadata