add fixes for chaining

feature/Vision
Henry 2024-02-02 15:44:05 +00:00
parent c5bd4d4168
commit a4131dc21b
2 changed files with 12 additions and 5 deletions

View File

@ -1954,7 +1954,10 @@ export class App {
chatflowid,
this.AppDataSource,
incomingInput?.overrideConfig,
this.cachePool
this.cachePool,
false,
undefined,
incomingInput.uploads
)
const nodeToExecute =

View File

@ -27,7 +27,8 @@ import {
ICommonObject,
IDatabaseEntity,
IMessage,
FlowiseMemory
FlowiseMemory,
IFileUpload
} from 'flowise-components'
import { randomBytes } from 'crypto'
import { AES, enc } from 'crypto-js'
@ -279,7 +280,8 @@ export const buildLangchain = async (
overrideConfig?: ICommonObject,
cachePool?: CachePool,
isUpsert?: boolean,
stopNodeId?: string
stopNodeId?: string,
uploads?: IFileUpload[]
) => {
const flowNodes = cloneDeep(reactFlowNodes)
@ -325,7 +327,8 @@ export const buildLangchain = async (
appDataSource,
databaseEntities,
cachePool,
dynamicVariables
dynamicVariables,
uploads
})
logger.debug(`[server]: Finished upserting ${reactFlowNode.data.label} (${reactFlowNode.data.id})`)
break
@ -340,7 +343,8 @@ export const buildLangchain = async (
appDataSource,
databaseEntities,
cachePool,
dynamicVariables
dynamicVariables,
uploads
})
// Save dynamic variables