Skip to content

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

Python

update edit model to GPT 5.3 codex

Abi Raja5a5899ce6495
diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py
index 8fc969ca..b35fd75a 100644
--- a/backend/routes/generate_code.py
+++ b/backend/routes/generate_code.py
@@ -410,14 +410,6 @@ class ModelSelectionStage:
)
return list(VIDEO_VARIANT_MODELS)
- # Edit/update mode prefers one Gemini + one OpenAI model for fast,
- # complementary deltas.
- if generation_type == "update" and gemini_api_key and openai_api_key:
- return [
- Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.GPT_5_2_CODEX_LOW,
- ]
-
# Define models based on available API keys
if gemini_api_key and anthropic_api_key and openai_api_key:
if input_mode == "text" and generation_type == "create":
diff --git a/backend/routes/model_choice_sets.py b/backend/routes/model_choice_sets.py
index 0a38a5fb..79153e1f 100644
--- a/backend/routes/model_choice_sets.py
+++ b/backend/routes/model_choice_sets.py
@@ -26,11 +26,11 @@ ALL_KEYS_MODELS_TEXT_CREATE = (
Llm.GEMINI_3_1_PRO_PREVIEW_LOW,
)
-# Text + Video (Update)
+# Image + Text (Update)
ALL_KEYS_MODELS_UPDATE = (
Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.GPT_5_2_CODEX_LOW,
+ Llm.GPT_5_3_CODEX_LOW,
)
# Key subset fallbacks.
diff --git a/backend/tests/test_model_selection.py b/backend/tests/test_model_selection.py
index 5efdbc92..60b8fe6e 100644
--- a/backend/tests/test_model_selection.py
+++ b/backend/tests/test_model_selection.py
@@ -44,7 +44,7 @@ class TestModelSelectionAllKeys:
expected = [
Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.GPT_5_2_CODEX_LOW,
+ Llm.GPT_5_3_CODEX_LOW,
]
assert models == expected
@@ -61,7 +61,7 @@ class TestModelSelectionAllKeys:
expected = [
Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,
- Llm.GPT_5_2_CODEX_LOW,
+ Llm.GPT_5_3_CODEX_LOW,
]
assert models == expected