Skip to content

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

Python

update models

Abi Rajacaa87e05a2f0
diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py
index 7a5bf4ac..98274430 100644
--- a/backend/routes/generate_code.py
+++ b/backend/routes/generate_code.py
@@ -416,9 +416,9 @@ class ModelSelectionStage:
# Define models based on available API keys
if gemini_api_key and anthropic_api_key and openai_api_key:
models = [
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.CLAUDE_OPUS_4_6,
+ Llm.GEMINI_3_FLASH_PREVIEW_HIGH,
+ Llm.GEMINI_3_PRO_PREVIEW_LOW,
+ Llm.GEMINI_3_PRO_PREVIEW_HIGH,
Llm.GPT_5_2_CODEX_HIGH,
]
elif gemini_api_key and anthropic_api_key:
diff --git a/backend/tests/test_model_selection.py b/backend/tests/test_model_selection.py
index 16841a79..ef272773 100644
--- a/backend/tests/test_model_selection.py
+++ b/backend/tests/test_model_selection.py
@@ -14,7 +14,7 @@ class TestModelSelectionAllKeys:
@pytest.mark.asyncio
async def test_gemini_anthropic_create(self):
- """All keys: first two options are Gemini 3 Flash (minimal)."""
+ """All keys: first three options are Gemini Flash High, Pro Low, Pro High."""
models = await self.model_selector.select_models(
generation_type="create",
input_mode="text",
@@ -24,9 +24,9 @@ class TestModelSelectionAllKeys:
)
expected = [
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.CLAUDE_OPUS_4_6,
+ Llm.GEMINI_3_FLASH_PREVIEW_HIGH,
+ Llm.GEMINI_3_PRO_PREVIEW_LOW,
+ Llm.GEMINI_3_PRO_PREVIEW_HIGH,
Llm.GPT_5_2_CODEX_HIGH,
]
assert models == expected
@@ -43,9 +43,9 @@ class TestModelSelectionAllKeys:
)
expected = [
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.CLAUDE_OPUS_4_6,
+ Llm.GEMINI_3_FLASH_PREVIEW_HIGH,
+ Llm.GEMINI_3_PRO_PREVIEW_LOW,
+ Llm.GEMINI_3_PRO_PREVIEW_HIGH,
Llm.GPT_5_2_CODEX_HIGH,
]
assert models == expected