Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
fix set of models
Abi Rajad5bd48c57256
diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.pyindex 5857552c..801cba58 100644--- a/backend/routes/generate_code.py+++ b/backend/routes/generate_code.py@@ -360,34 +360,18 @@ class ModelSelectionStage:) -> List[Llm]:"""Simple model cycling that scales with num_variants"""- claude_model = Llm.CLAUDE_3_7_SONNET_2025_02_19-- # For text input mode, use Claude 4 Sonnet as third option- # For other input modes (image/video), use Gemini as third option- if input_mode == "text":- third_model = Llm.CLAUDE_4_SONNET_2025_05_14- else:- # Gemini only works for create right now- if generation_type == "create":- third_model = Llm.GEMINI_2_0_FLASH- else:- third_model = claude_model-# Define models based on available API keys- if (- openai_api_key- and anthropic_api_key- and (gemini_api_key or input_mode == "text")- ):+ if gemini_api_key and anthropic_api_key:models = [- Llm.GPT_4_1_2025_04_14,- claude_model,- third_model,+ Llm.GEMINI_3_FLASH_PREVIEW if generation_type == "create" else Llm.CLAUDE_4_5_SONNET_2025_09_29,+ Llm.CLAUDE_4_5_SONNET_2025_09_29,+ Llm.CLAUDE_4_5_OPUS_2025_11_01,+ Llm.GEMINI_3_PRO_PREVIEW,]elif openai_api_key and anthropic_api_key:- models = [claude_model, Llm.GPT_4_1_2025_04_14]+ models = [Llm.CLAUDE_4_5_SONNET_2025_09_29, Llm.GPT_4_1_2025_04_14]elif anthropic_api_key:- models = [claude_model, Llm.CLAUDE_4_5_SONNET_2025_09_29]+ models = [Llm.CLAUDE_4_5_SONNET_2025_09_29, Llm.CLAUDE_4_5_OPUS_2025_11_01]elif openai_api_key:models = [Llm.GPT_4_1_2025_04_14, Llm.GPT_4O_2024_11_20]else: