Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
add GPT4o message
Abi Raja9e3614549ce7
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsxindex 33c02ca2..fd1576ea 100644--- a/frontend/src/App.tsx+++ b/frontend/src/App.tsx@@ -89,6 +89,10 @@ function App() {CodeGenerationModel.GPT_4_TURBO_2024_04_09 &&settings.generatedCodeConfig === Stack.REACT_TAILWIND;+ const showGpt4OMessage =+ selectedCodeGenerationModel !== CodeGenerationModel.GPT_4O_2024_05_13 &&+ appState === AppState.INITIAL;+// Indicate coding state using the browser tab's favicon and titleuseBrowserTabIndicator(appState === AppState.CODING);@@ -403,6 +407,15 @@ function App() {</div>)}+ {showGpt4OMessage && (+ <div className="rounded-lg p-2 bg-fuchsia-200">+ <p className="text-gray-800 text-sm">+ Now supporting GPT-4o. Higher quality and 2x faster. Give it a+ try!+ </p>+ </div>+ )}+{appState !== AppState.CODE_READY && <TipLink />}{IS_RUNNING_ON_CLOUD && !settings.openAiApiKey && <OnboardingNote />}diff --git a/frontend/src/lib/models.ts b/frontend/src/lib/models.tsindex 970e63b0..d6fd09db 100644--- a/frontend/src/lib/models.ts+++ b/frontend/src/lib/models.ts@@ -11,7 +11,7 @@ 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 },+ "gpt-4o-2024-05-13": { name: "GPT-4o π", 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 },