diff --git a/src/components/xt-chat/chat-view/index.vue b/src/components/xt-chat/chat-view/index.vue index b1eb5c5..51aa4e4 100644 --- a/src/components/xt-chat/chat-view/index.vue +++ b/src/components/xt-chat/chat-view/index.vue @@ -5,7 +5,7 @@ import SenderInput from './components/sender-input/index.vue'; import RightView from './components/right-view/index.vue'; import { useChatStore } from '@/stores/modules/chat'; -import { getConversationList } from '@/api/all/chat'; +import { getConversationList, stopAgentTask } from '@/api/all/chat'; import querySSE from '@/utils/querySSE'; import useChatHandler from './useChatHandler'; import { QUESTION_ROLE, LOADING_ROLE } from './constants'; @@ -58,6 +58,7 @@ export default { if (generateLoading.value) { bubbleListRef.value?.abortTypingByKey(generateTeamRunTaskId.value); sseController.value?.abort?.(); + stopAgentTask({ run_id: generateTeamRunTaskId.value }); } if (showRightView.value) { rightViewRef.value?.abortTyping?.(); @@ -165,7 +166,7 @@ export default {