Skip to content

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]

Update transformation.py

Sameer Kankute11079c5b9796
diff --git a/litellm/llms/vertex_ai/gemini/transformation.py b/litellm/llms/vertex_ai/gemini/transformation.py
index 04fde04f2c1..58f6817cbcc 100644
--- a/litellm/llms/vertex_ai/gemini/transformation.py
+++ b/litellm/llms/vertex_ai/gemini/transformation.py
@@ -124,14 +124,6 @@ def _process_gemini_image(
if VertexGeminiConfig._is_gemini_3_or_newer(model):
_blob["media_resolution"] = media_resolution
- # Convert snake_case keys to camelCase for JSON serialization
- # The TypedDict uses snake_case, but the API expects camelCase
- _blob_dict = dict(_blob)
- if "media_resolution" in _blob_dict:
- _blob_dict["media_resolution"] = _blob_dict.pop("media_resolution")
- if "mime_type" in _blob_dict:
- _blob_dict["mime_type"] = _blob_dict.pop("mime_type")
-
return PartType(inline_data=cast(BlobType, _blob_dict))
raise Exception("Invalid image received - {}".format(image_url))
except Exception as e: