Skip to content

Commit 775954e

Browse files
Fit chat stop (#141)
1 parent 8e7a063 commit 775954e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix stop",
4+
"packageName": "@acedatacloud/nexior",
5+
"email": "1348977728@qq.com",
6+
"dependentChangeType": "patch"
7+
}

src/operators/chat.ts

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ChatOperator {
2424
'Content-Type': 'application/json',
2525
Accept: 'text/event-stream'
2626
},
27+
signal: options.signal,
2728
body: JSON.stringify(data)
2829
})
2930
.then((response) => {

src/pages/chat/Conversation.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ export default defineComponent({
228228
return;
229229
}
230230
let conversationId = this.conversationId;
231-
this.canceler = new AbortController();
232231
chatOperator
233232
.updateConversation(
234233
{
@@ -237,8 +236,7 @@ export default defineComponent({
237236
messages: updatedMessages
238237
},
239238
{
240-
token,
241-
signal: this.canceler.signal
239+
token
242240
}
243241
)
244242
.then(async () => {

0 commit comments

Comments
 (0)