Skip to content

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

Python

Remove deprecated Claude 3 model definitions

Abi Raja42d1be4a3966
diff --git a/backend/llm.py b/backend/llm.py
index 5fff1301..0afffb72 100644
--- a/backend/llm.py
+++ b/backend/llm.py
@@ -13,9 +13,6 @@ class Llm(Enum):
GPT_4_1_MINI_2025_04_14 = "gpt-4.1-mini-2025-04-14"
GPT_4_1_NANO_2025_04_14 = "gpt-4.1-nano-2025-04-14"
GPT_5_2_2025_12_11 = "gpt-5.2-2025-12-11"
- CLAUDE_3_SONNET = "claude-3-sonnet-20240229"
- CLAUDE_3_OPUS = "claude-3-opus-20240229"
- CLAUDE_3_HAIKU = "claude-3-haiku-20240307"
CLAUDE_3_7_SONNET_2025_02_19 = "claude-3-7-sonnet-20250219"
CLAUDE_4_SONNET_2025_05_14 = "claude-sonnet-4-20250514"
CLAUDE_4_5_SONNET_2025_09_29 = "claude-sonnet-4-5-20250929"
@@ -57,9 +54,6 @@ MODEL_PROVIDER: dict[Llm, str] = {
Llm.O4_MINI_2025_04_16: "openai",
Llm.O3_2025_04_16: "openai",
# Anthropic models
- Llm.CLAUDE_3_SONNET: "anthropic",
- Llm.CLAUDE_3_OPUS: "anthropic",
- Llm.CLAUDE_3_HAIKU: "anthropic",
Llm.CLAUDE_3_7_SONNET_2025_02_19: "anthropic",
Llm.CLAUDE_4_SONNET_2025_05_14: "anthropic",
Llm.CLAUDE_4_5_SONNET_2025_09_29: "anthropic",
diff --git a/backend/routes/evals.py b/backend/routes/evals.py
index cfd4b5cf..a2f13ba3 100644
--- a/backend/routes/evals.py
+++ b/backend/routes/evals.py
@@ -200,9 +200,6 @@ async def get_models():
for model in Llm
if model != Llm.GPT_4_TURBO_2024_04_09
and model != Llm.GPT_4_VISION
- and model != Llm.CLAUDE_3_SONNET
- and model != Llm.CLAUDE_3_OPUS
- and model != Llm.CLAUDE_3_HAIKU
]
# Import Stack type from prompts.types and get all literal values
diff --git a/frontend/src/lib/models.ts b/frontend/src/lib/models.ts
index 37d3c0fc..c6f978e8 100644
--- a/frontend/src/lib/models.ts
+++ b/frontend/src/lib/models.ts
@@ -5,7 +5,6 @@ export enum CodeGenerationModel {
GPT_4O_2024_05_13 = "gpt-4o-2024-05-13",
GPT_4_TURBO_2024_04_09 = "gpt-4-turbo-2024-04-09",
GPT_4_VISION = "gpt_4_vision",
- CLAUDE_3_SONNET = "claude_3_sonnet",
}
// Will generate a static error if a model in the enum above is not in the descriptions
@@ -16,5 +15,4 @@ export const CODE_GENERATION_MODEL_DESCRIPTIONS: {
"claude-sonnet-4-5-20250929": { name: "Claude Sonnet 4.5", inBeta: false },
"gpt-4-turbo-2024-04-09": { name: "GPT-4 Turbo (deprecated)", inBeta: false },
gpt_4_vision: { name: "GPT-4 Vision (deprecated)", inBeta: false },
- claude_3_sonnet: { name: "Claude 3 (deprecated)", inBeta: false },
};