mirror of https://github.com/buster-so/buster.git
update streaming logic
This commit is contained in:
parent
22d3b8573c
commit
016d29d815
|
@ -80,7 +80,12 @@ export const useAutoRedirectStreaming = ({
|
|||
}
|
||||
|
||||
//this happen will when the chat is completed and it WAS streaming
|
||||
else if (isStreamFinished && previousIsCompletedStream.current === false && !firstFileId) {
|
||||
else if (
|
||||
isFinishedReasoning &&
|
||||
isStreamFinished &&
|
||||
previousIsCompletedStream.current === false &&
|
||||
!firstFileId
|
||||
) {
|
||||
//no file is found, so we need to collapse the chat
|
||||
|
||||
navigate({
|
||||
|
|
Loading…
Reference in New Issue