mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 06:49:03 +00:00
Update +page.svelte
This commit is contained in:
parent
442e3d978a
commit
b8337db9d5
@ -26,6 +26,8 @@
|
|||||||
let autoScroll = true;
|
let autoScroll = true;
|
||||||
let processing = '';
|
let processing = '';
|
||||||
|
|
||||||
|
let currentRequestId = null;
|
||||||
|
|
||||||
// let chatId = $page.params.id;
|
// let chatId = $page.params.id;
|
||||||
let selectedModels = [''];
|
let selectedModels = [''];
|
||||||
let selectedModelfile = null;
|
let selectedModelfile = null;
|
||||||
@ -338,7 +340,10 @@
|
|||||||
|
|
||||||
if (stopResponseFlag) {
|
if (stopResponseFlag) {
|
||||||
controller.abort('User: Stop Response');
|
controller.abort('User: Stop Response');
|
||||||
|
await cancelChatCompletion(localStorage.token, currentRequestId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentRequestId = null;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -356,6 +361,7 @@
|
|||||||
|
|
||||||
if ('id' in data) {
|
if ('id' in data) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
currentRequestId = data.id;
|
||||||
} else {
|
} else {
|
||||||
if (data.done == false) {
|
if (data.done == false) {
|
||||||
if (responseMessage.content == '' && data.message.content == '\n') {
|
if (responseMessage.content == '' && data.message.content == '\n') {
|
||||||
|
Loading…
Reference in New Issue
Block a user