hide prompt if systemMessageContent is empty

This commit is contained in:
2024-07-18 09:34:09 +08:00
parent 3328b3e94d
commit b9fdfb8905

View File

@@ -838,12 +838,14 @@ export default function ChatBOX(props: {
<br />
</p>
)}
{chatStore.systemMessageContent.trim() && (
<div class="chat chat-start">
<div class="chat-header">Prompt</div>
<div class="chat-bubble chat-bubble-accent">
{chatStore.systemMessageContent}
</div>
</div>
)}
{chatStore.history.map((_, messageIndex) => (
<Message