Show warning only when not loading and no messages
Browse filesUpdated the condition to display the warning message so it only appears when there are no messages and the chat is not loading. This prevents the warning from showing during loading states.
src/lib/components/chat/ChatWindow.svelte
CHANGED
|
@@ -581,7 +581,7 @@
|
|
| 581 |
{currentModel.id}
|
| 582 |
</span>
|
| 583 |
{/if}
|
| 584 |
-
{#if !messages.length}
|
| 585 |
<span>Generated content may be inaccurate or false.</span>
|
| 586 |
{/if}
|
| 587 |
</div>
|
|
|
|
| 581 |
{currentModel.id}
|
| 582 |
</span>
|
| 583 |
{/if}
|
| 584 |
+
{#if !messages.length && !loading}
|
| 585 |
<span>Generated content may be inaccurate or false.</span>
|
| 586 |
{/if}
|
| 587 |
</div>
|