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
0656d4b1
Unverified
Commit
0656d4b1
authored
Dec 10, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Dec 10, 2023
Browse files
Merge pull request #202 from ollama-webui/fix-edit-chat
fix: edit chat message
parents
68c6f697
fb83c576
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+2
-2
No files found.
src/lib/components/chat/Messages.svelte
View file @
0656d4b1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
import
auto_render
from
'
katex/dist/contrib/auto-render.mjs
'
;
import
auto_render
from
'
katex/dist/contrib/auto-render.mjs
'
;
import
'
katex/dist/katex.min.css
'
;
import
'
katex/dist/katex.min.css
'
;
import
{
config
,
db
,
modelfiles
,
settings
,
user
}
from
'
$lib/stores
'
;
import
{
chatId
,
config
,
db
,
modelfiles
,
settings
,
user
}
from
'
$lib/stores
'
;
import
{
tick
}
from
'
svelte
'
;
import
{
tick
}
from
'
svelte
'
;
import
toast
from
'
svelte-french-toast
'
;
import
toast
from
'
svelte-french-toast
'
;
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
history
.
currentId
=
userMessageId
;
history
.
currentId
=
userMessageId
;
await
tick
();
await
tick
();
await
sendPrompt
(
userPrompt
,
userMessageId
);
await
sendPrompt
(
userPrompt
,
userMessageId
,
$chatId
);
};
};
const
cancelEditMessage
=
(
messageId
)
=>
{
const
cancelEditMessage
=
(
messageId
)
=>
{
...
...
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