Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
Summarize Claude Opus 4.6 updates
Abi Raja2b06dc724897
diff --git a/backend/agent/providers/anthropic.py b/backend/agent/providers/anthropic.pyindex e89f142e..c6e93ac7 100644--- a/backend/agent/providers/anthropic.py+++ b/backend/agent/providers/anthropic.py@@ -32,6 +32,7 @@ THINKING_MODELS = {}ADAPTIVE_THINKING_MODELS = {Llm.CLAUDE_OPUS_4_6.value,+ Llm.CLAUDE_SONNET_4_6.value,}diff --git a/backend/llm.py b/backend/llm.pyindex 03160793..9d93ee5a 100644--- a/backend/llm.py+++ b/backend/llm.py@@ -9,6 +9,7 @@ class Llm(Enum):GPT_5_2_CODEX_MEDIUM = "gpt-5.2-codex (medium thinking)"GPT_5_2_CODEX_HIGH = "gpt-5.2-codex (high thinking)"# Claude+ CLAUDE_SONNET_4_6 = "claude-sonnet-4-6"CLAUDE_4_5_SONNET_2025_09_29 = "claude-sonnet-4-5-20250929"CLAUDE_4_5_OPUS_2025_11_01 = "claude-opus-4-5-20251101"CLAUDE_OPUS_4_6 = "claude-opus-4-6"@@ -33,6 +34,7 @@ MODEL_PROVIDER: dict[Llm, str] = {Llm.GPT_5_2_CODEX_MEDIUM: "openai",Llm.GPT_5_2_CODEX_HIGH: "openai",# Anthropic models+ Llm.CLAUDE_SONNET_4_6: "anthropic",Llm.CLAUDE_4_5_SONNET_2025_09_29: "anthropic",Llm.CLAUDE_4_5_OPUS_2025_11_01: "anthropic",Llm.CLAUDE_OPUS_4_6: "anthropic",diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.pyindex 75eabf76..d7858b5d 100644--- a/backend/routes/generate_code.py+++ b/backend/routes/generate_code.py@@ -433,7 +433,7 @@ class ModelSelectionStage:Llm.GEMINI_3_PRO_PREVIEW_HIGH,]elif anthropic_api_key:- models = [Llm.CLAUDE_OPUS_4_6, Llm.CLAUDE_4_5_SONNET_2025_09_29]+ models = [Llm.CLAUDE_OPUS_4_6, Llm.CLAUDE_SONNET_4_6]elif openai_api_key:models = [Llm.GPT_5_2_CODEX_HIGH, Llm.GPT_5_2_CODEX_MEDIUM]else:diff --git a/backend/tests/test_model_selection.py b/backend/tests/test_model_selection.pyindex 74099add..f8475ae7 100644--- a/backend/tests/test_model_selection.py+++ b/backend/tests/test_model_selection.py@@ -123,7 +123,7 @@ class TestModelSelectionAnthropicOnly:@pytest.mark.asyncioasync def test_anthropic_only(self):- """Anthropic only: Claude Opus 4.6 and Claude Sonnet 4.5 cycling"""+ """Anthropic only: Claude Opus 4.6 and Claude Sonnet 4.6 cycling"""models = await self.model_selector.select_models(generation_type="create",input_mode="text",@@ -134,9 +134,9 @@ class TestModelSelectionAnthropicOnly:expected = [Llm.CLAUDE_OPUS_4_6,- Llm.CLAUDE_4_5_SONNET_2025_09_29,+ Llm.CLAUDE_SONNET_4_6,Llm.CLAUDE_OPUS_4_6,- Llm.CLAUDE_4_5_SONNET_2025_09_29,+ Llm.CLAUDE_SONNET_4_6,]assert models == expecteddiff --git a/frontend/src/lib/models.ts b/frontend/src/lib/models.tsindex 83ac26fc..3e0eb11a 100644--- a/frontend/src/lib/models.ts+++ b/frontend/src/lib/models.ts@@ -2,6 +2,7 @@// Order here matches dropdown orderexport enum CodeGenerationModel {CLAUDE_OPUS_4_6 = "claude-opus-4-6",+ CLAUDE_SONNET_4_6 = "claude-sonnet-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)",@@ -26,6 +27,7 @@ export const CODE_GENERATION_MODEL_DESCRIPTIONS: {},"claude-opus-4-5-20251101": { name: "Claude Opus 4.5", inBeta: false },"claude-opus-4-6": { name: "Claude Opus 4.6", inBeta: false },+ "claude-sonnet-4-6": { name: "Claude Sonnet 4.6", inBeta: false },"claude-sonnet-4-5-20250929": { name: "Claude Sonnet 4.5", inBeta: false },"gemini-3-flash-preview (high thinking)": {name: "Gemini 3 Flash (high)",