From 42c48f290f954517c81132cdd35cf3d0a0683199 Mon Sep 17 00:00:00 2001 From: Mckay Wrigley Date: Thu, 23 Mar 2023 09:20:11 -0600 Subject: [PATCH] fix rogue messages --- components/Chat/Chat.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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.