add note about OpenAI API
This commit is contained in:
parent
f0101036a0
commit
91934ecae9
@ -30,6 +30,8 @@ import { USER_CLOSE_WEB_SOCKET_CODE } from "./constants";
|
|||||||
import CodeTab from "./components/CodeTab";
|
import CodeTab from "./components/CodeTab";
|
||||||
import OutputSettingsSection from "./components/OutputSettingsSection";
|
import OutputSettingsSection from "./components/OutputSettingsSection";
|
||||||
|
|
||||||
|
const IS_OPENAI_DOWN = false;
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [appState, setAppState] = useState<AppState>(AppState.INITIAL);
|
const [appState, setAppState] = useState<AppState>(AppState.INITIAL);
|
||||||
const [generatedCode, setGeneratedCode] = useState<string>("");
|
const [generatedCode, setGeneratedCode] = useState<string>("");
|
||||||
@ -209,6 +211,13 @@ function App() {
|
|||||||
<OnboardingNote />
|
<OnboardingNote />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{IS_OPENAI_DOWN && (
|
||||||
|
<div className="bg-black text-white dark:bg-white dark:text-black p-3 rounded">
|
||||||
|
OpenAI API is currently down. Try back in 30 minutes or later. We
|
||||||
|
apologize for the inconvenience.
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{(appState === AppState.CODING ||
|
{(appState === AppState.CODING ||
|
||||||
appState === AppState.CODE_READY) && (
|
appState === AppState.CODE_READY) && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user