Fit chat stop (#141)

This commit is contained in:
HCode authored and GitHub committed 2024-09-20 11:22:41 +08:00
1 parent 8e7a0638ad
commit 775954ee52
3 files changed
+9 -3

No files matched your search

@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix stop",
"packageName": "@acedatacloud/nexior",
"email": "1348977728@qq.com",
"dependentChangeType": "patch"
}
+1
View File
@@ -24,6 +24,7 @@ class ChatOperator {
'Content-Type': 'application/json',
Accept: 'text/event-stream'
},
signal: options.signal,
body: JSON.stringify(data)
})
.then((response) => {
+1 -3
View File
@@ -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 () => {