Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
Set Claude Opus 4.6 as first model
Abi Raja11ac470a8565
diff --git a/backend/agent/providers/anthropic.py b/backend/agent/providers/anthropic.pyindex 6702d550..e89f142e 100644--- a/backend/agent/providers/anthropic.py+++ b/backend/agent/providers/anthropic.py@@ -30,6 +30,9 @@ THINKING_MODELS = {Llm.CLAUDE_4_5_SONNET_2025_09_29.value,Llm.CLAUDE_4_5_OPUS_2025_11_01.value,}+ADAPTIVE_THINKING_MODELS = {+ Llm.CLAUDE_OPUS_4_6.value,+}def _process_image(image_data_url: str) -> tuple[str, str]:@@ -244,7 +247,12 @@ class AnthropicProviderSession(ProviderSession):"tools": self._tools,}- if self._model.value in THINKING_MODELS:+ if self._model.value in ADAPTIVE_THINKING_MODELS:+ stream_kwargs["thinking"] = {+ "type": "adaptive",+ }+ stream_kwargs["output_config"] = {"effort": "max"}+ elif self._model.value in THINKING_MODELS:stream_kwargs["thinking"] = {"type": "enabled","budget_tokens": 10000,diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.pyindex 54c26a32..7d5940ea 100644--- a/backend/routes/generate_code.py+++ b/backend/routes/generate_code.py@@ -399,10 +399,10 @@ class ModelSelectionStage:# Define models based on available API keysif gemini_api_key and anthropic_api_key and openai_api_key:models = [+ 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:models = [diff --git a/backend/tests/test_model_selection.py b/backend/tests/test_model_selection.pyindex 7921e8fa..20e19062 100644--- a/backend/tests/test_model_selection.py+++ b/backend/tests/test_model_selection.py@@ -14,7 +14,7 @@ class TestModelSelectionAllKeys:@pytest.mark.asyncioasync def test_gemini_anthropic_create(self):- """All keys: first three options are Gemini Flash High, Pro Low, Pro High."""+ """All keys: first option is Claude Opus 4.6, followed by Gemini variants."""models = await self.model_selector.select_models(generation_type="create",input_mode="text",@@ -24,10 +24,10 @@ class TestModelSelectionAllKeys:)expected = [+ 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,10 +43,10 @@ class TestModelSelectionAllKeys:)expected = [+ 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 == expecteddiff --git a/frontend/src/lib/models.ts b/frontend/src/lib/models.tsindex 3e2c4823..83ac26fc 100644--- a/frontend/src/lib/models.ts+++ b/frontend/src/lib/models.ts@@ -1,11 +1,11 @@// Keep in sync with backend (llm.py)// Order here matches dropdown orderexport enum CodeGenerationModel {- GPT_5_2_CODEX_MEDIUM = "gpt-5.2-codex (medium thinking)",- GPT_5_2_CODEX_HIGH = "gpt-5.2-codex (high thinking)",- CLAUDE_4_5_OPUS_2025_11_01 = "claude-opus-4-5-20251101",CLAUDE_OPUS_4_6 = "claude-opus-4-6",+ CLAUDE_4_5_OPUS_2025_11_01 = "claude-opus-4-5-20251101",CLAUDE_4_5_SONNET_2025_09_29 = "claude-sonnet-4-5-20250929",+ GPT_5_2_CODEX_MEDIUM = "gpt-5.2-codex (medium thinking)",+ GPT_5_2_CODEX_HIGH = "gpt-5.2-codex (high thinking)",GEMINI_3_FLASH_PREVIEW_HIGH = "gemini-3-flash-preview (high thinking)",GEMINI_3_FLASH_PREVIEW_MINIMAL = "gemini-3-flash-preview (minimal thinking)",GEMINI_3_PRO_PREVIEW_HIGH = "gemini-3-pro-preview (high thinking)",