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]

undo code changes

Ishaan Jaff8a72b67b18a9
diff --git a/litellm/llms/vertex_ai/gemini/transformation.py b/litellm/llms/vertex_ai/gemini/transformation.py
index 5534ca03ce6..d6bafc7c60f 100644
--- a/litellm/llms/vertex_ai/gemini/transformation.py
+++ b/litellm/llms/vertex_ai/gemini/transformation.py
@@ -12,7 +12,6 @@ from pydantic import BaseModel
import litellm
from litellm._logging import verbose_logger
-from litellm.litellm_core_utils.llm_request_utils import LitellmCoreRequestUtils
from litellm.litellm_core_utils.prompt_templates.factory import (
convert_to_anthropic_image_obj,
convert_to_gemini_tool_call_invoke,
@@ -285,11 +284,6 @@ def _transform_request_body(
Common transformation logic across sync + async Gemini /generateContent calls.
"""
# Separate system prompt from rest of message
- model = LitellmCoreRequestUtils.select_model_for_request_transformation(
- model=model,
- litellm_params=litellm_params,
- )
-
supports_system_message = get_supports_system_message(
model=model, custom_llm_provider=custom_llm_provider
)