From 26438c29d5022e097cd355091c45aa5785eba2e9 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 15 Feb 2024 01:23:02 -0800 Subject: [PATCH] feat: continue generation --- src/lib/components/chat/Messages.svelte | 2 + .../chat/Messages/ResponseMessage.svelte | 44 ++++++++- src/routes/(app)/+page.svelte | 96 ++++++++++--------- src/routes/(app)/c/[id]/+page.svelte | 96 ++++++++++--------- 4 files changed, 143 insertions(+), 95 deletions(-) diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index d4ca35a3..3b2e3f62 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -14,6 +14,7 @@ export let chatId = ''; export let sendPrompt: Function; + export let continueGeneration: Function; export let regenerateResponse: Function; export let processing = ''; @@ -296,6 +297,7 @@ {showNextMessage} {rateMessage} {copyToClipboard} + {continueGeneration} {regenerateResponse} /> {/if} diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 3df78d2e..546e0621 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -29,6 +29,7 @@ export let rateMessage: Function; export let copyToClipboard: Function; + export let continueGeneration: Function; export let regenerateResponse: Function; let edit = false; @@ -362,7 +363,7 @@ {/if} {#if message.done} -
+
{#if siblings.length > 1}
+