From 620a0d2165fb01345641a07a92f11c033577418e Mon Sep 17 00:00:00 2001 From: hyf-github-user <1348977728@qq.com> Date: Fri, 20 Sep 2024 11:13:30 +0800 Subject: [PATCH 1/2] fix stop --- src/operators/chat.ts | 1 + src/pages/chat/Conversation.vue | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/operators/chat.ts b/src/operators/chat.ts index 4c7a1e8a..84ca3eb8 100644 --- a/src/operators/chat.ts +++ b/src/operators/chat.ts @@ -24,6 +24,7 @@ class ChatOperator { 'Content-Type': 'application/json', Accept: 'text/event-stream' }, + signal: options.signal, body: JSON.stringify(data) }) .then((response) => { diff --git a/src/pages/chat/Conversation.vue b/src/pages/chat/Conversation.vue index b39a647a..5b864898 100644 --- a/src/pages/chat/Conversation.vue +++ b/src/pages/chat/Conversation.vue @@ -228,7 +228,6 @@ export default defineComponent({ return; } let conversationId = this.conversationId; - this.canceler = new AbortController(); chatOperator .updateConversation( { @@ -237,8 +236,7 @@ export default defineComponent({ messages: updatedMessages }, { - token, - signal: this.canceler.signal + token } ) .then(async () => { From a50c098d40ecdfa18ca67b09f4ed15b464645659 Mon Sep 17 00:00:00 2001 From: hyf-github-user <1348977728@qq.com> Date: Fri, 20 Sep 2024 11:14:40 +0800 Subject: [PATCH 2/2] add change --- ...acloud-nexior-1ce8927e-821b-47b5-9fb1-12c7355693e8.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 change/@acedatacloud-nexior-1ce8927e-821b-47b5-9fb1-12c7355693e8.json diff --git a/change/@acedatacloud-nexior-1ce8927e-821b-47b5-9fb1-12c7355693e8.json b/change/@acedatacloud-nexior-1ce8927e-821b-47b5-9fb1-12c7355693e8.json new file mode 100644 index 00000000..6a12307e --- /dev/null +++ b/change/@acedatacloud-nexior-1ce8927e-821b-47b5-9fb1-12c7355693e8.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix stop", + "packageName": "@acedatacloud/nexior", + "email": "1348977728@qq.com", + "dependentChangeType": "patch" +}