Skip to content

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

Python

Add GPT 5.2 and Gemini choices

Abi Rajaee1aadcff209
diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py
index d7858b5d..5175c4fc 100644
--- a/backend/routes/generate_code.py
+++ b/backend/routes/generate_code.py
@@ -399,8 +399,8 @@ 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.GPT_5_2_CODEX_HIGH,
+ Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
Llm.GEMINI_3_PRO_PREVIEW_HIGH,
Llm.GEMINI_3_FLASH_PREVIEW_HIGH,
]
diff --git a/backend/tests/test_model_selection.py b/backend/tests/test_model_selection.py
index f8475ae7..920b3e7f 100644
--- a/backend/tests/test_model_selection.py
+++ b/backend/tests/test_model_selection.py
@@ -24,8 +24,8 @@ class TestModelSelectionAllKeys:
)
expected = [
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
Llm.GPT_5_2_CODEX_HIGH,
+ Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
Llm.GEMINI_3_PRO_PREVIEW_HIGH,
Llm.GEMINI_3_FLASH_PREVIEW_HIGH,
]
@@ -43,8 +43,8 @@ class TestModelSelectionAllKeys:
)
expected = [
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
Llm.GPT_5_2_CODEX_HIGH,
+ Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
Llm.GEMINI_3_PRO_PREVIEW_HIGH,
Llm.GEMINI_3_FLASH_PREVIEW_HIGH,
]