Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
Remove legacy Gemini 2.x model entries
Abi Rajab0507a0e2252
diff --git a/backend/llm.py b/backend/llm.pyindex 0afffb72..c6364e7b 100644--- a/backend/llm.py+++ b/backend/llm.py@@ -18,10 +18,6 @@ class Llm(Enum):CLAUDE_4_5_SONNET_2025_09_29 = "claude-sonnet-4-5-20250929"CLAUDE_4_OPUS_2025_05_14 = "claude-opus-4-20250514"CLAUDE_4_5_OPUS_2025_11_01 = "claude-opus-4-5-20251101"- GEMINI_2_0_FLASH_EXP = "gemini-2.0-flash-exp"- 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_3_FLASH_PREVIEW_HIGH = "gemini-3-flash-preview (high thinking)"GEMINI_3_FLASH_PREVIEW_MINIMAL = "gemini-3-flash-preview (minimal thinking)"GEMINI_3_PRO_PREVIEW_HIGH = "gemini-3-pro-preview (high thinking)"@@ -60,10 +56,6 @@ MODEL_PROVIDER: dict[Llm, str] = {Llm.CLAUDE_4_OPUS_2025_05_14: "anthropic",Llm.CLAUDE_4_5_OPUS_2025_11_01: "anthropic",# Gemini models- Llm.GEMINI_2_0_FLASH_EXP: "gemini",- Llm.GEMINI_2_0_FLASH: "gemini",- Llm.GEMINI_2_0_PRO_EXP: "gemini",- Llm.GEMINI_2_5_FLASH_PREVIEW_05_20: "gemini",Llm.GEMINI_3_FLASH_PREVIEW_HIGH: "gemini",Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL: "gemini",Llm.GEMINI_3_PRO_PREVIEW_HIGH: "gemini",diff --git a/backend/models/gemini.py b/backend/models/gemini.pyindex 9ea49567..9f0556e7 100644--- a/backend/models/gemini.py+++ b/backend/models/gemini.py@@ -206,17 +206,7 @@ async def stream_gemini_response(client = genai.Client(api_key=api_key)full_response = ""- if model == Llm.GEMINI_2_5_FLASH_PREVIEW_05_20:- # Gemini 2.5 Flash supports thinking budgets- config = types.GenerateContentConfig(- temperature=0,- max_output_tokens=20000,- system_instruction=system_prompt,- thinking_config=types.ThinkingConfig(- thinking_budget=5000, include_thoughts=True- ),- )- elif model == Llm.GEMINI_3_FLASH_PREVIEW_HIGH:+ if model == Llm.GEMINI_3_FLASH_PREVIEW_HIGH:# Gemini 3 Flash with HIGH thinkingconfig = types.GenerateContentConfig(temperature=0,diff --git a/backend/video/cost_estimation.py b/backend/video/cost_estimation.pyindex 4fbcced4..2491e101 100644--- a/backend/video/cost_estimation.py+++ b/backend/video/cost_estimation.py@@ -50,11 +50,6 @@ GEMINI_PRICING = {"input_per_million": 2.00, # prompts <= 200k tokens"output_per_million": 12.00, # including thinking tokens},- # Gemini 2.5 Flash- "gemini-2.5-flash": {- "input_per_million": 0.30, # text/image/video- "output_per_million": 2.50,- },}@@ -63,8 +58,6 @@ def get_model_api_name(model: Llm) -> str:return "gemini-3-flash-preview"elif model in [Llm.GEMINI_3_PRO_PREVIEW_HIGH, Llm.GEMINI_3_PRO_PREVIEW_LOW]:return "gemini-3-pro-preview"- elif model == Llm.GEMINI_2_5_FLASH_PREVIEW_05_20:- return "gemini-2.5-flash"return model.value