Hides default system prompt in simple mode (#375)

* Hides default system prompt without advanced mode

* Hides default system prompt in simple mode
This commit is contained in:
Joshua Blake Smith 2023-07-06 14:58:44 -06:00 committed by GitHub
parent 1d88a86293
commit be3147c6c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,14 +64,16 @@ const ChatContent = () => {
<NewMessageButton messageIndex={-1} />
)}
{messages?.map((message, index) => (
<React.Fragment key={index}>
<Message
role={message.role}
content={message.content}
messageIndex={index}
/>
{!generating && advancedMode && <NewMessageButton messageIndex={index} />}
</React.Fragment>
(advancedMode || index !== 0 || message.role !== 'system') && (
<React.Fragment key={index}>
<Message
role={message.role}
content={message.content}
messageIndex={index}
/>
{!generating && advancedMode && <NewMessageButton messageIndex={index} />}
</React.Fragment>
)
))}
</div>