Commit 51b59403 authored by Danny Liu's avatar Danny Liu
Browse files

invoke stopResponse() if user deletes message during response generation

parent 632882a5
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
export let sendPrompt: Function; export let sendPrompt: Function;
export let continueGeneration: Function; export let continueGeneration: Function;
export let regenerateResponse: Function; export let regenerateResponse: Function;
export let stopResponse: Function;
export let processing = ''; export let processing = '';
export let bottomPadding = false; export let bottomPadding = false;
...@@ -228,6 +229,7 @@ ...@@ -228,6 +229,7 @@
await updateChatById(localStorage.token, chatId, { history }); await updateChatById(localStorage.token, chatId, { history });
await chats.set(await getChatList(localStorage.token)); await chats.set(await getChatList(localStorage.token));
stopResponse();
}; };
</script> </script>
......
...@@ -828,6 +828,7 @@ ...@@ -828,6 +828,7 @@
{sendPrompt} {sendPrompt}
{continueGeneration} {continueGeneration}
{regenerateResponse} {regenerateResponse}
{stopResponse}
/> />
</div> </div>
</div> </div>
......
...@@ -858,6 +858,7 @@ ...@@ -858,6 +858,7 @@
{sendPrompt} {sendPrompt}
{continueGeneration} {continueGeneration}
{regenerateResponse} {regenerateResponse}
{stopResponse}
/> />
</div> </div>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment