mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
invoke stopResponse() if user deletes message during response generation
This commit is contained in:
parent
632882a511
commit
51b594036d
@ -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>
|
||||
|
||||
|
@ -828,6 +828,7 @@
|
||||
{sendPrompt}
|
||||
{continueGeneration}
|
||||
{regenerateResponse}
|
||||
{stopResponse}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -858,6 +858,7 @@
|
||||
{sendPrompt}
|
||||
{continueGeneration}
|
||||
{regenerateResponse}
|
||||
{stopResponse}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user