mirror of https://github.com/buster-so/buster.git
update streaming effect
This commit is contained in:
parent
152f95c768
commit
a870c8383d
|
@ -305,6 +305,6 @@ describe('useAutoRedirectStreaming', () => {
|
|||
|
||||
renderHook(() => useAutoRedirectStreaming(defaultProps));
|
||||
|
||||
expect(mockNavigateFn).not.toHaveBeenCalled();
|
||||
expect(mockNavigateFn).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -89,8 +89,7 @@ export const useAutoRedirectStreaming = ({
|
|||
|
||||
//this happen will when the chat is completed and it WAS streaming
|
||||
else if (
|
||||
isFinishedReasoning &&
|
||||
isStreamFinished &&
|
||||
(isFinishedReasoning || isStreamFinished) &&
|
||||
previousIsCompletedStream.current === false &&
|
||||
!firstFileId
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue