Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
Use gpt-5.5 high instead of xhigh in model sets
Abi Raja8e33b55e8b6d
diff --git a/backend/routes/model_choice_sets.py b/backend/routes/model_choice_sets.pyindex 38a24c93..e0f543d8 100644--- a/backend/routes/model_choice_sets.py+++ b/backend/routes/model_choice_sets.py@@ -12,7 +12,7 @@ VIDEO_VARIANT_MODELS = (ALL_KEYS_MODELS_DEFAULT = (Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,- Llm.GPT_5_5_XHIGH,+ Llm.GPT_5_5_HIGH,Llm.GEMINI_3_FLASH_PREVIEW_HIGH,Llm.GEMINI_3_1_PRO_PREVIEW_HIGH,)@@ -21,7 +21,7 @@ ALL_KEYS_MODELS_DEFAULT = (ALL_KEYS_MODELS_TEXT_CREATE = (Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,- Llm.GPT_5_5_XHIGH,+ Llm.GPT_5_5_HIGH,Llm.CLAUDE_OPUS_4_6,Llm.GEMINI_3_1_PRO_PREVIEW_LOW,)@@ -44,13 +44,13 @@ GEMINI_ANTHROPIC_MODELS = (GEMINI_OPENAI_MODELS = (Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,Llm.GEMINI_3_1_PRO_PREVIEW_LOW,- Llm.GPT_5_5_XHIGH,Llm.GPT_5_5_HIGH,+ Llm.GPT_5_5_LOW,)OPENAI_ANTHROPIC_MODELS = (Llm.CLAUDE_OPUS_4_6,- Llm.GPT_5_5_XHIGH,Llm.GPT_5_5_HIGH,+ Llm.GPT_5_5_LOW,)GEMINI_ONLY_MODELS = (Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,@@ -63,6 +63,6 @@ ANTHROPIC_ONLY_MODELS = (Llm.CLAUDE_SONNET_4_6,)OPENAI_ONLY_MODELS = (- Llm.GPT_5_5_XHIGH,Llm.GPT_5_5_HIGH,+ Llm.GPT_5_5_LOW,)diff --git a/backend/tests/test_agent_tools.py b/backend/tests/test_agent_tools.pyindex c87e9c4c..2e0306d5 100644--- a/backend/tests/test_agent_tools.py+++ b/backend/tests/test_agent_tools.py@@ -76,7 +76,7 @@ def test_canonical_tool_definitions_exclude_extract_assets_when_disabled() -> Nodef test_provider_session_excludes_extract_assets_without_gemini_key() -> None:session = create_provider_session(- model=Llm.GPT_5_2_CODEX_HIGH,+ model=Llm.GPT_5_5_HIGH,prompt_messages=[{"role": "user", "content": "Build a page."}],should_generate_images=True,openai_api_key="openai-key",@@ -92,7 +92,7 @@ def test_provider_session_excludes_extract_assets_without_gemini_key() -> None:def test_provider_session_includes_extract_assets_with_gemini_key() -> None:session = create_provider_session(- model=Llm.GPT_5_2_CODEX_HIGH,+ model=Llm.GPT_5_5_HIGH,prompt_messages=[{"role": "user", "content": "Build a page."}],should_generate_images=True,openai_api_key="openai-key",@@ -113,7 +113,7 @@ def test_provider_session_excludes_screenshot_preview_when_chromium_unavailable("agent.providers.factory.is_screenshot_preview_available", lambda: False)session = create_provider_session(- model=Llm.GPT_5_2_CODEX_HIGH,+ model=Llm.GPT_5_5_HIGH,prompt_messages=[{"role": "user", "content": "Build a page."}],should_generate_images=True,openai_api_key="openai-key",@@ -134,7 +134,7 @@ def test_provider_session_includes_screenshot_preview_when_chromium_available("agent.providers.factory.is_screenshot_preview_available", lambda: True)session = create_provider_session(- model=Llm.GPT_5_2_CODEX_HIGH,+ model=Llm.GPT_5_5_HIGH,prompt_messages=[{"role": "user", "content": "Build a page."}],should_generate_images=True,openai_api_key="openai-key",diff --git a/backend/tests/test_model_selection.py b/backend/tests/test_model_selection.pyindex 2e0fe7b6..da334cde 100644--- a/backend/tests/test_model_selection.py+++ b/backend/tests/test_model_selection.py@@ -25,7 +25,7 @@ class TestModelSelectionAllKeys:expected = [Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,- Llm.GPT_5_5_XHIGH,+ Llm.GPT_5_5_HIGH,Llm.CLAUDE_OPUS_4_6,Llm.GEMINI_3_1_PRO_PREVIEW_LOW,]@@ -44,7 +44,7 @@ class TestModelSelectionAllKeys:expected = [Llm.GEMINI_3_FLASH_PREVIEW_MINIMAL,- Llm.GPT_5_5_XHIGH,+ Llm.GPT_5_5_HIGH,Llm.GEMINI_3_FLASH_PREVIEW_HIGH,Llm.GEMINI_3_1_PRO_PREVIEW_HIGH,]@@ -129,7 +129,7 @@ class TestModelSelectionOpenAIAnthropic:@pytest.mark.asyncioasync def test_openai_anthropic(self):- """OpenAI + Anthropic: Claude Opus 4.6, GPT 5.5 (xhigh/high), cycling"""+ """OpenAI + Anthropic: Claude Opus 4.6, GPT 5.5 high, GPT 5.5 low, cycling"""models = await self.model_selector.select_models(generation_type="create",input_mode="text",@@ -140,8 +140,8 @@ class TestModelSelectionOpenAIAnthropic:expected = [Llm.CLAUDE_OPUS_4_6,- Llm.GPT_5_5_XHIGH,Llm.GPT_5_5_HIGH,+ Llm.GPT_5_5_LOW,Llm.CLAUDE_OPUS_4_6,]assert models == expected@@ -185,7 +185,7 @@ class TestModelSelectionOpenAIOnly:@pytest.mark.asyncioasync def test_openai_only(self):- """OpenAI only: GPT 5.5 (xhigh/high) only"""+ """OpenAI only: GPT 5.5 high and low, cycling"""models = await self.model_selector.select_models(generation_type="create",input_mode="text",@@ -195,10 +195,10 @@ class TestModelSelectionOpenAIOnly:)expected = [- Llm.GPT_5_5_XHIGH,Llm.GPT_5_5_HIGH,- Llm.GPT_5_5_XHIGH,+ Llm.GPT_5_5_LOW,Llm.GPT_5_5_HIGH,+ Llm.GPT_5_5_LOW,]assert models == expecteddiff --git a/backend/tests/test_tool_image_outputs.py b/backend/tests/test_tool_image_outputs.pyindex 514c905f..bcc13e1e 100644--- a/backend/tests/test_tool_image_outputs.py+++ b/backend/tests/test_tool_image_outputs.py@@ -106,7 +106,7 @@ async def test_openai_url_for_public_dataurl_for_local_with_detail() -> None:session = OpenAIProviderSession(client=object(), # type: ignore[arg-type]- model=Llm.GPT_5_2_CODEX_HIGH,+ model=Llm.GPT_5_5_HIGH,prompt_messages=[{"role": "user", "content": "hi"}],tools=[],)diff --git a/frontend/src/lib/models.test.ts b/frontend/src/lib/models.test.tsindex 9a06ef91..01529e65 100644--- a/frontend/src/lib/models.test.ts+++ b/frontend/src/lib/models.test.ts@@ -2,25 +2,25 @@ import { CodeGenerationModel, getVariantLabel } from "./models";const FLASH_MIN = CodeGenerationModel.GEMINI_3_FLASH_PREVIEW_MINIMAL;const PRO_HIGH = CodeGenerationModel.GEMINI_3_1_PRO_PREVIEW_HIGH;-const GPT_XHIGH = CodeGenerationModel.GPT_5_5_XHIGH;+const GPT_HIGH = CodeGenerationModel.GPT_5_5_HIGH;const PRO_LOW = CodeGenerationModel.GEMINI_3_1_PRO_PREVIEW_LOW;describe("getVariantLabel", () => {- test("image/create: Flash-minimal -> Fast; Pro-high & GPT-5.5 xhigh -> Max", () => {+ test("image/create: Flash-minimal -> Fast; Pro-high & GPT-5.5 high -> Max", () => {const ctx = { inputMode: "image" as const, generationType: "create" as const };expect(getVariantLabel(FLASH_MIN, ctx)).toEqual({ text: "Fast", tone: "fast" });expect(getVariantLabel(PRO_HIGH, ctx)).toEqual({ text: "Max", tone: "max" });- expect(getVariantLabel(GPT_XHIGH, ctx)).toEqual({ text: "Max", tone: "max" });+ expect(getVariantLabel(GPT_HIGH, ctx)).toEqual({ text: "Max", tone: "max" });// Flash-high stays unlabelled.expect(getVariantLabel(CodeGenerationModel.GEMINI_3_FLASH_PREVIEW_HIGH, ctx)).toBeNull();});- test("text/create: Flash-minimal -> Fast, GPT-5.5 xhigh -> Max; Pro-low unlabelled", () => {+ test("text/create: Flash-minimal -> Fast, GPT-5.5 high -> Max; Pro-low unlabelled", () => {const ctx = { inputMode: "text" as const, generationType: "create" as const };expect(getVariantLabel(FLASH_MIN, ctx)).toEqual({ text: "Fast", tone: "fast" });- expect(getVariantLabel(GPT_XHIGH, ctx)).toEqual({ text: "Max", tone: "max" });+ expect(getVariantLabel(GPT_HIGH, ctx)).toEqual({ text: "Max", tone: "max" });expect(getVariantLabel(PRO_LOW, ctx)).toBeNull();});@@ -28,7 +28,7 @@ describe("getVariantLabel", () => {const ctx = { inputMode: "image" as const, generationType: "update" as const };expect(getVariantLabel(FLASH_MIN, ctx)).toBeNull();expect(getVariantLabel(PRO_HIGH, ctx)).toBeNull();- expect(getVariantLabel(GPT_XHIGH, ctx)).toBeNull();+ expect(getVariantLabel(GPT_HIGH, ctx)).toBeNull();});test("text/update: no labels", () => {diff --git a/frontend/src/lib/models.ts b/frontend/src/lib/models.tsindex ea32ae68..aa121881 100644--- a/frontend/src/lib/models.ts+++ b/frontend/src/lib/models.ts@@ -37,12 +37,12 @@ export interface VariantLabelContext {generationType: "create" | "update";}-// Per-model badge text. Only these models are labelled. GPT-5.5 xhigh and+// Per-model badge text. Only these models are labelled. GPT-5.5 high and// Gemini 3.1 Pro high are the heavyweight variants, so both read "Max".const VARIANT_LABELS: Partial<Record<CodeGenerationModel, VariantLabel>> = {[CodeGenerationModel.GEMINI_3_FLASH_PREVIEW_MINIMAL]: { text: "Fast", tone: "fast" },[CodeGenerationModel.GEMINI_3_1_PRO_PREVIEW_HIGH]: { text: "Max", tone: "max" },- [CodeGenerationModel.GPT_5_5_XHIGH]: { text: "Max", tone: "max" },+ [CodeGenerationModel.GPT_5_5_HIGH]: { text: "Max", tone: "max" },};// Badges are only shown on create flows and on any video flow. In particular