diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index e83d2ae..caa8f53 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -65,14 +65,12 @@ export const Chat: FC = ({ conversation, models, apiKey, messageIsStreami return (
- {!apiKey && ( + {!apiKey ? (
OpenAI API Key Required
Please set your OpenAI API key in the bottom left of the sidebar.
- )} - - {modelError ? ( + ) : modelError ? (
Error fetching models.
Make sure your OpenAI API key is set in the bottom left of the sidebar or in a .env.local file and refresh.