From ba39f9bf56dfc09f357417c88256bbc77bd2dc0f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 23 Sep 2024 17:40:24 +0200 Subject: [PATCH] refac --- src/lib/components/chat/MessageInput.svelte | 4 ++-- src/lib/components/chat/Messages.svelte | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 099f1dcec..bb5250def 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -691,7 +691,7 @@ />
- {#if !history?.currentId || history.messages[history.currentId].done == true} + {#if !history?.currentId || history.messages[history.currentId]?.done == true}
- {#if !history.currentId || history.messages[history.currentId].done == true} + {#if !history.currentId || history.messages[history.currentId]?.done == true} {#if prompt === ''}
diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 7e914ae9d..d159e80f9 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -337,9 +337,13 @@ messageId={message.id} idx={messageIdx} {user} + {showPreviousMessage} + {showNextMessage} {editMessage} {deleteMessage} {rateMessage} + {regenerateResponse} + {continueResponse} /> {/each}