remove react warning

This commit is contained in:
Abi Raja 2024-07-19 16:11:46 -04:00
parent 3f6fcdea25
commit ba0d51a34f

View File

@ -89,11 +89,6 @@ function App() {
const wsRef = useRef<WebSocket>(null); const wsRef = useRef<WebSocket>(null);
const showReactWarning =
selectedCodeGenerationModel ===
CodeGenerationModel.GPT_4_TURBO_2024_04_09 &&
settings.generatedCodeConfig === Stack.REACT_TAILWIND;
const showBetterModelMessage = const showBetterModelMessage =
selectedCodeGenerationModel !== CodeGenerationModel.GPT_4O_2024_05_13 && selectedCodeGenerationModel !== CodeGenerationModel.GPT_4O_2024_05_13 &&
selectedCodeGenerationModel !== selectedCodeGenerationModel !==
@ -442,13 +437,6 @@ function App() {
} }
/> />
{showReactWarning && (
<div className="text-sm bg-yellow-200 rounded p-2">
Sorry - React is not currently working with GPT-4 Turbo. Please
use GPT-4 Vision or Claude Sonnet. We are working on a fix.
</div>
)}
{showBetterModelMessage && ( {showBetterModelMessage && (
<div className="rounded-lg p-2 bg-fuchsia-200"> <div className="rounded-lg p-2 bg-fuchsia-200">
<p className="text-gray-800 text-sm"> <p className="text-gray-800 text-sm">
@ -578,7 +566,7 @@ function App() {
</div> </div>
</div> </div>
)} )}
<div className="bg-gray-400 px-4 py-2 rounded text-sm hidden"> <div className="bg-gray-400 px-4 py-2 rounded text-sm">
<h2 className="text-lg mb-4 border-b border-gray-800"> <h2 className="text-lg mb-4 border-b border-gray-800">
Console Console
</h2> </h2>