Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
update front-end to indicate status of deprecated models
Abi Raja329b8e8e77dd
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsxindex 44669cf6..e3b5b646 100644--- a/frontend/src/App.tsx+++ b/frontend/src/App.tsx@@ -454,8 +454,8 @@ function App() {{showBetterModelMessage && (<div className="rounded-lg p-2 bg-fuchsia-200"><p className="text-gray-800 text-sm">- Now supporting GPT-4o and Claude Sonnet 3.5. Higher quality and- 2x faster. Give it a try!+ We no longer support this model. Instead, code generation will+ use GPT-4o or Claude Sonnet 3.5, the 2 state-of-the-art models.</p></div>)}diff --git a/frontend/src/lib/models.ts b/frontend/src/lib/models.tsindex c9be84b0..06ff7086 100644--- a/frontend/src/lib/models.ts+++ b/frontend/src/lib/models.ts@@ -12,9 +12,9 @@ export enum CodeGenerationModel {export const CODE_GENERATION_MODEL_DESCRIPTIONS: {[key in CodeGenerationModel]: { name: string; inBeta: boolean };} = {- "gpt-4o-2024-05-13": { name: "GPT-4o π", inBeta: false },- "claude-3-5-sonnet-20240620": { name: "Claude 3.5 Sonnet π", inBeta: false },- "gpt-4-turbo-2024-04-09": { name: "GPT-4 Turbo (Apr 2024)", inBeta: false },- gpt_4_vision: { name: "GPT-4 Vision (Nov 2023)", inBeta: false },- claude_3_sonnet: { name: "Claude 3 Sonnet", inBeta: false },+ "gpt-4o-2024-05-13": { name: "GPT-4o", inBeta: false },+ "claude-3-5-sonnet-20240620": { name: "Claude 3.5 Sonnet", 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 },};