diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b7b0482..2a33c97 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -31,6 +31,8 @@ import CodeTab from "./components/CodeTab"; import OutputSettingsSection from "./components/OutputSettingsSection"; import { addEvent } from "./lib/analytics"; +const IS_OPENAI_DOWN = false; + function App() { const [appState, setAppState] = useState(AppState.INITIAL); const [generatedCode, setGeneratedCode] = useState(""); @@ -212,6 +214,13 @@ function App() { )} + {IS_OPENAI_DOWN && ( +
+ OpenAI API is currently down. Try back in 30 minutes or later. We + apologize for the inconvenience. +
+ )} + {(appState === AppState.CODING || appState === AppState.CODE_READY) && ( <>