Skip to content

Commit 98c558f

Browse files
authored
fix: Workflow dialogue cannot output complete content (#4796)
1 parent f202e23 commit 98c558f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/src/components/ai-chat/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ const getWrite = (chat: any, reader: any, stream: boolean) => {
439439
440440
tempResult += str
441441
const split = tempResult.match(/data:.*?}\n\n/g)
442-
443442
if (split) {
444443
str = split.join('')
445444
tempResult = tempResult.replace(str, '')
@@ -584,7 +583,7 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
584583
reader,
585584
response.headers.get('Content-Type') !== 'application/json',
586585
)
587-
return reader.read().then(write)
586+
return write()
588587
}
589588
})
590589
.then(() => {

0 commit comments

Comments
 (0)