Skip to content

Commit

Permalink
Fit chat stop (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf-github-user authored Sep 20, 2024
1 parent 8e7a063 commit 775954e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix stop",
"packageName": "@acedatacloud/nexior",
"email": "1348977728@qq.com",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions src/operators/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ChatOperator {
'Content-Type': 'application/json',
Accept: 'text/event-stream'
},
signal: options.signal,
body: JSON.stringify(data)
})
.then((response) => {
Expand Down
4 changes: 1 addition & 3 deletions src/pages/chat/Conversation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ export default defineComponent({
return;
}
let conversationId = this.conversationId;
this.canceler = new AbortController();
chatOperator
.updateConversation(
{
Expand All @@ -237,8 +236,7 @@ export default defineComponent({
messages: updatedMessages
},
{
token,
signal: this.canceler.signal
token
}
)
.then(async () => {
Expand Down

0 comments on commit 775954e

Please sign in to comment.