mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
enh: keep originalContent
This commit is contained in:
parent
9cd150a048
commit
6922529b78
1 changed files with 5 additions and 1 deletions
|
|
@ -626,7 +626,11 @@
|
|||
if (res !== null) {
|
||||
// Update chat history with the new messages
|
||||
for (const message of res.messages) {
|
||||
history.messages[message.id] = { ...history.messages[message.id], ...message };
|
||||
history.messages[message.id] = {
|
||||
...history.messages[message.id],
|
||||
originalContent: history.messages[message.id].content,
|
||||
...message
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue