Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
e1d65065
"vscode:/vscode.git/clone" did not exist on "9352cc88840d2d66a7e528f295d668d043e0bb1d"
Commit
e1d65065
authored
May 30, 2024
by
Timothy J. Baek
Browse files
fix
parent
6922529b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/lib/components/chat/Chat.svelte
src/lib/components/chat/Chat.svelte
+10
-2
No files found.
src/lib/components/chat/Chat.svelte
View file @
e1d65065
...
...
@@ -628,7 +628,9 @@
for (const message of res.messages) {
history.messages[message.id] = {
...history.messages[message.id],
originalContent: history.messages[message.id].content,
...(history.messages[message.id].content !== message.content
? { originalContent: history.messages[message.id].content }
: {}),
...message
};
}
...
...
@@ -913,7 +915,13 @@
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],
...(history.messages[message.id].content !== message.content
? { originalContent: history.messages[message.id].content }
: {}),
...message
};
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment