diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 942f500646..b6ac238fe1 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -472,6 +472,19 @@ }; let taskIds = null; + let liveStatus = ''; + + $: if (loading || !history.currentId) { + liveStatus = ''; + } else if ( + Object.values(history.messages).some( + (message) => message.role === 'assistant' && message.done === false + ) + ) { + liveStatus = $i18n.t('Generating...'); + } else if (liveStatus) { + liveStatus = $i18n.t('Response complete'); + } // Chat Input let prompt = ''; @@ -5228,6 +5241,7 @@ /> {/if}