From 6332e46e7b8c80f36c9017af77bae116b0f8f749 Mon Sep 17 00:00:00 2001 From: Peter De-Ath Date: Sat, 16 Nov 2024 22:17:55 +0000 Subject: [PATCH] fix: update actionMessage to include message parameter --- src/lib/components/chat/Messages.svelte | 2 +- src/lib/components/chat/Messages/ResponseMessage.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 5d71da836..8a42dd7ad 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -273,7 +273,7 @@ } }; - const actionMessage = async (actionId, event = null) => { + const actionMessage = async (actionId, message, event = null) => { await chatActionHandler(chatId, actionId, message.model, message.id, event); }; diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 6db343b68..2d7917772 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -1166,7 +1166,7 @@ ? 'visible' : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition regenerate-response-button" on:click={() => { - actionMessage(action.id); + actionMessage(action.id, message); }} > {#if action.icon_url}