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 <CompareMessages
bind:history bind:history
{messages} {messages}
{readOnly}
{chatId} {chatId}
parentMessage={history.messages[message.parentId]} parentMessage={history.messages[message.parentId]}
{messageIdx} {messageIdx}

View File

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