Merge pull request #309 from FlowiseAI/bugfix/Disable-Stream-in-Child-Mode

Bugfix/Disable Stream For ChildMode
This commit is contained in:
Henry Heng
2023-06-12 22:54:05 +01:00
committed by GitHub
+6 -1
View File
@@ -658,5 +658,10 @@ export const isFlowValidForStream = (reactFlowNodes: IReactFlowNode[], endingNod
}
}
return isChatOrLLMsExist && endingNodeData.category === 'Chains' && !isVectorStoreFaiss(endingNodeData)
return (
isChatOrLLMsExist &&
endingNodeData.category === 'Chains' &&
!isVectorStoreFaiss(endingNodeData) &&
process.env.EXECUTION_MODE !== 'child'
)
}