Fit chat stop (#141)
This commit is contained in:
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"
|
||||
}
|
||||
@@ -24,6 +24,7 @@ class ChatOperator {
|
||||
'Content-Type': 'application/json',
|
||||
Accept: 'text/event-stream'
|
||||
},
|
||||
signal: options.signal,
|
||||
body: JSON.stringify(data)
|
||||
})
|
||||
.then((response) => {
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in new issue
Block a user