Update index.ts

This commit is contained in:
Henry Heng
2023-10-08 12:00:44 +01:00
committed by GitHub
parent 40b06cd43a
commit 77899b956e
+1 -1
View File
@@ -477,7 +477,7 @@ export const replaceInputsWithConfig = (flowNodeData: INodeData, overrideConfig:
*/
export const isStartNodeDependOnInput = (startingNodes: IReactFlowNode[], nodes: IReactFlowNode[]): boolean => {
for (const node of startingNodes) {
if (node.data.category === 'LLM Cache') return true
if (node.data.category === 'Cache') return true
for (const inputName in node.data.inputs) {
const inputVariables = getInputVariables(node.data.inputs[inputName])
if (inputVariables.length > 0) return true