fix: many model chat save as copy issue

This commit is contained in:
Timothy J. Baek 2024-09-22 20:16:45 +02:00
parent 2cfe6830df
commit 8532f9da03
2 changed files with 3 additions and 0 deletions

View File

@ -399,6 +399,7 @@
parentMessage={history.messages[message.parentId]} parentMessage={history.messages[message.parentId]}
{messageIdx} {messageIdx}
{updateChatMessages} {updateChatMessages}
{saveNewResponseMessage}
{confirmEditResponseMessage} {confirmEditResponseMessage}
{rateMessage} {rateMessage}
copyToClipboard={copyToClipboardWithToast} copyToClipboard={copyToClipboardWithToast}

View File

@ -38,6 +38,7 @@
export let continueGeneration: Function; export let continueGeneration: Function;
export let mergeResponses: Function; export let mergeResponses: Function;
export let regenerateResponse: Function; export let regenerateResponse: Function;
export let saveNewResponseMessage: Function;
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
@ -184,6 +185,7 @@
siblings={groupedMessages[modelIdx].messages.map((m) => m.id)} siblings={groupedMessages[modelIdx].messages.map((m) => m.id)}
isLastMessage={true} isLastMessage={true}
{updateChatMessages} {updateChatMessages}
{saveNewResponseMessage}
{confirmEditResponseMessage} {confirmEditResponseMessage}
showPreviousMessage={() => showPreviousMessage(modelIdx)} showPreviousMessage={() => showPreviousMessage(modelIdx)}
showNextMessage={() => showNextMessage(modelIdx)} showNextMessage={() => showNextMessage(modelIdx)}