hide prompt if systemMessageContent is empty
This commit is contained in:
@@ -838,12 +838,14 @@ export default function ChatBOX(props: {
|
|||||||
<br />
|
<br />
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<div class="chat chat-start">
|
{chatStore.systemMessageContent.trim() && (
|
||||||
<div class="chat-header">Prompt</div>
|
<div class="chat chat-start">
|
||||||
<div class="chat-bubble chat-bubble-accent">
|
<div class="chat-header">Prompt</div>
|
||||||
{chatStore.systemMessageContent}
|
<div class="chat-bubble chat-bubble-accent">
|
||||||
|
{chatStore.systemMessageContent}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
|
|
||||||
{chatStore.history.map((_, messageIndex) => (
|
{chatStore.history.map((_, messageIndex) => (
|
||||||
<Message
|
<Message
|
||||||
|
|||||||
Reference in New Issue
Block a user