add feedback to exported chat

This commit is contained in:
Henry 2024-02-27 01:00:24 +08:00
parent a555ac2b46
commit c5c396a0ed
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ const ViewMessagesDialog = ({ show, dialogProps, onCancel }) => {
if (chatmsg.sourceDocuments) msg.sourceDocuments = JSON.parse(chatmsg.sourceDocuments)
if (chatmsg.usedTools) msg.usedTools = JSON.parse(chatmsg.usedTools)
if (chatmsg.fileAnnotations) msg.fileAnnotations = JSON.parse(chatmsg.fileAnnotations)
if (chatmsg.feedback) msg.feedback = chatmsg.feedback?.content
if (!Object.prototype.hasOwnProperty.call(obj, chatPK)) {
obj[chatPK] = {