From be3147c6c4772e965dd86562268d3026032741d8 Mon Sep 17 00:00:00 2001 From: Joshua Blake Smith Date: Thu, 6 Jul 2023 14:58:44 -0600 Subject: [PATCH] Hides default system prompt in simple mode (#375) * Hides default system prompt without advanced mode * Hides default system prompt in simple mode --- .../Chat/ChatContent/ChatContent.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/Chat/ChatContent/ChatContent.tsx b/src/components/Chat/ChatContent/ChatContent.tsx index 545d174..1671db4 100644 --- a/src/components/Chat/ChatContent/ChatContent.tsx +++ b/src/components/Chat/ChatContent/ChatContent.tsx @@ -64,14 +64,16 @@ const ChatContent = () => { )} {messages?.map((message, index) => ( - - - {!generating && advancedMode && } - + (advancedMode || index !== 0 || message.role !== 'system') && ( + + + {!generating && advancedMode && } + + ) ))}