Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

set gemini 3 pro to low thinking and update max tokens

Abi Rajae08ad6539075
diff --git a/backend/models/gemini.py b/backend/models/gemini.py
index ee82e14d..906ff57e 100644
--- a/backend/models/gemini.py
+++ b/backend/models/gemini.py
@@ -66,6 +66,13 @@ async def stream_gemini_response(
max_output_tokens=30000,
thinking_config=types.ThinkingConfig(thinking_level="minimal"),
)
+ elif model_name == Llm.GEMINI_3_PRO_PREVIEW.value:
+ # Gemini 3 Pro with low thinking
+ config = types.GenerateContentConfig(
+ temperature=0,
+ max_output_tokens=30000,
+ thinking_config=types.ThinkingConfig(thinking_level="low"),
+ )
else:
# TODO: Fix output tokens here
config = types.GenerateContentConfig(