【bug】解决 AI chat stream 返回 content === '' 会结束对话问题

pull/453/head
cherishsince 2024-05-21 16:40:38 +08:00
parent 3634fca835
commit 7237da9764
1 changed files with 1 additions and 6 deletions

View File

@ -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