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
51b59403
Commit
51b59403
authored
Feb 20, 2024
by
Danny Liu
Browse files
invoke stopResponse() if user deletes message during response generation
parent
632882a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+2
-0
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+1
-0
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+1
-0
No files found.
src/lib/components/chat/Messages.svelte
View file @
51b59403
...
...
@@ -16,6 +16,7 @@
export let sendPrompt: Function;
export let continueGeneration: Function;
export let regenerateResponse: Function;
export let stopResponse: Function;
export let processing = '';
export let bottomPadding = false;
...
...
@@ -228,6 +229,7 @@
await updateChatById(localStorage.token, chatId, { history });
await chats.set(await getChatList(localStorage.token));
stopResponse();
};
</script>
...
...
src/routes/(app)/+page.svelte
View file @
51b59403
...
...
@@ -828,6 +828,7 @@
{sendPrompt}
{continueGeneration}
{regenerateResponse}
{stopResponse}
/>
</div>
</div>
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
51b59403
...
...
@@ -858,6 +858,7 @@
{sendPrompt}
{continueGeneration}
{regenerateResponse}
{stopResponse}
/>
</div>
</div>
...
...
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