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]

Remove defualt hardcoded thinking levels for gemini 3 family

Sameer Kankutef8034f15ada8
diff --git a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
index dee826e5783..0905f22362e 100644
--- a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
+++ b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
@@ -1136,23 +1136,6 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):
if VertexGeminiConfig._is_gemini_3_or_newer(model):
if "temperature" not in optional_params:
optional_params["temperature"] = 1.0
- # Only add thinkingLevel if model supports it (exclude image models)
- if "image" not in model.lower():
- thinking_config = optional_params.get("thinkingConfig", {})
- if (
- "thinkingLevel" not in thinking_config
- and "thinkingBudget" not in thinking_config
- ):
- # For gemini-3-flash-preview, default to "minimal" to match Gemini 2.5 Flash behavior
- # For other Gemini 3 models, default to "low"
- is_gemini3flash = (
- "gemini-3-flash-preview" in model.lower()
- or "gemini-3-flash" in model.lower()
- )
- thinking_config["thinkingLevel"] = (
- "minimal" if is_gemini3flash else "low"
- )
- optional_params["thinkingConfig"] = thinking_config
return optional_params