mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 17:43:58 +01:00
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:
parent
1d88a86293
commit
be3147c6c4
|
@ -64,14 +64,16 @@ const ChatContent = () => {
|
||||||
<NewMessageButton messageIndex={-1} />
|
<NewMessageButton messageIndex={-1} />
|
||||||
)}
|
)}
|
||||||
{messages?.map((message, index) => (
|
{messages?.map((message, index) => (
|
||||||
<React.Fragment key={index}>
|
(advancedMode || index !== 0 || message.role !== 'system') && (
|
||||||
<Message
|
<React.Fragment key={index}>
|
||||||
role={message.role}
|
<Message
|
||||||
content={message.content}
|
role={message.role}
|
||||||
messageIndex={index}
|
content={message.content}
|
||||||
/>
|
messageIndex={index}
|
||||||
{!generating && advancedMode && <NewMessageButton messageIndex={index} />}
|
/>
|
||||||
</React.Fragment>
|
{!generating && advancedMode && <NewMessageButton messageIndex={index} />}
|
||||||
|
</React.Fragment>
|
||||||
|
)
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue