fix: read only compare messages

This commit is contained in:
Timothy J. Baek 2024-05-31 14:19:46 -07:00
parent 92700302b9
commit 5ef478a154
2 changed files with 4 additions and 0 deletions

View File

@ -340,6 +340,7 @@
<CompareMessages
bind:history
{messages}
{readOnly}
{chatId}
parentMessage={history.messages[message.parentId]}
{messageIdx}

View File

@ -13,6 +13,8 @@
export let parentMessage;
export let readOnly = false;
export let updateChatMessages: Function;
export let confirmEditResponseMessage: Function;
export let rateMessage: Function;
@ -134,6 +136,7 @@
{confirmEditResponseMessage}
showPreviousMessage={() => showPreviousMessage(model)}
showNextMessage={() => showNextMessage(model)}
{readOnly}
{rateMessage}
{copyToClipboard}
{continueGeneration}