Skip to content

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

Python

remove GEMINI_2_5_PRO_PREVIEW_05_06 model

Abi Rajafbdf645680c0
diff --git a/backend/evals/core.py b/backend/evals/core.py
index b928b498..930a2966 100644
--- a/backend/evals/core.py
+++ b/backend/evals/core.py
@@ -44,7 +44,6 @@ async def generate_code_core(
or model == Llm.GEMINI_2_0_PRO_EXP
or model == Llm.GEMINI_2_0_FLASH
or model == Llm.GEMINI_2_5_FLASH_PREVIEW_05_20
- or model == Llm.GEMINI_2_5_PRO_PREVIEW_05_06
):
if not GEMINI_API_KEY:
raise Exception("Gemini API key not found")
diff --git a/backend/llm.py b/backend/llm.py
index 73c9262e..728043b0 100644
--- a/backend/llm.py
+++ b/backend/llm.py
@@ -24,7 +24,6 @@ class Llm(Enum):
GEMINI_2_0_FLASH = "gemini-2.0-flash"
GEMINI_2_0_PRO_EXP = "gemini-2.0-pro-exp-02-05"
GEMINI_2_5_FLASH_PREVIEW_05_20 = "gemini-2.5-flash-preview-05-20"
- GEMINI_2_5_PRO_PREVIEW_05_06 = "gemini-2.5-pro-preview-05-06"
O1_2024_12_17 = "o1-2024-12-17"
O4_MINI_2025_04_16 = "o4-mini-2025-04-16"
O3_2025_04_16 = "o3-2025-04-16"
diff --git a/backend/models/gemini.py b/backend/models/gemini.py
index 7ecd06fb..726a5eeb 100644
--- a/backend/models/gemini.py
+++ b/backend/models/gemini.py
@@ -59,12 +59,6 @@ async def stream_gemini_response(
thinking_budget=5000, include_thoughts=True
),
)
- elif model_name == Llm.GEMINI_2_5_PRO_PREVIEW_05_06.value:
- config = types.GenerateContentConfig(
- temperature=0,
- max_output_tokens=20000,
- thinking_config=types.ThinkingConfig(include_thoughts=True),
- )
else:
# TODO: Fix output tokens here
config = types.GenerateContentConfig(
diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py
index 0f4734c3..04ae516f 100644
--- a/backend/routes/generate_code.py
+++ b/backend/routes/generate_code.py
@@ -588,7 +588,6 @@ class ParallelGenerationStage:
or model == Llm.GEMINI_2_0_FLASH_EXP
or model == Llm.GEMINI_2_0_FLASH
or model == Llm.GEMINI_2_5_FLASH_PREVIEW_05_20
- or model == Llm.GEMINI_2_5_PRO_PREVIEW_05_06
):
tasks.append(
stream_gemini_response(