From 7237da9764156bc2d6fd0878f883a2cc7be4134a Mon Sep 17 00:00:00 2001 From: cherishsince Date: Tue, 21 May 2024 16:40:38 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=E8=A7=A3=E5=86=B3=20AI=20?= =?UTF-8?q?chat=20stream=20=E8=BF=94=E5=9B=9E=20content=20=3D=3D=3D=20''?= =?UTF-8?q?=20=E4=BC=9A=E7=BB=93=E6=9D=9F=E5=AF=B9=E8=AF=9D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/chat/index.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/views/ai/chat/index.vue b/src/views/ai/chat/index.vue index c8e362fe..041ed194 100644 --- a/src/views/ai/chat/index.vue +++ b/src/views/ai/chat/index.vue @@ -308,13 +308,8 @@ const doSendStream = async (userMessage: ChatMessageVO) => { conversationInAbortController.value, async (message) => { const data = JSON.parse(message.data) // TODO 芋艿:类型处理; - // debugger - // 如果没有内容结束链接 + // 如果内容为空,就不处理。 if (data.receive.content === '') { - // 标记对话结束 - conversationInProgress.value = false - // 结束 stream 对话 - conversationInAbortController.value.abort() return } // 首次返回需要添加一个 message 到页面,后面的都是更新