mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
Add $flow to Variable Resolution in Flow Building Process (#3075)
* Add $flow to Variable Resolution in Flow Building Process * add overrideConfig values to $flow.... * fix for replacement of $flow values inside text. * refactor and compatibilize with agent flow
This commit is contained in:
@@ -337,13 +337,21 @@ export const utilBuildChatflow = async (req: Request, socketIO?: Server, isInter
|
||||
nodeToExecute.data = replaceInputsWithConfig(nodeToExecute.data, incomingInput.overrideConfig)
|
||||
}
|
||||
|
||||
const flowData: ICommonObject = {
|
||||
chatflowid,
|
||||
chatId,
|
||||
sessionId,
|
||||
chatHistory,
|
||||
...incomingInput.overrideConfig
|
||||
}
|
||||
|
||||
const reactFlowNodeData: INodeData = await resolveVariables(
|
||||
appServer.AppDataSource,
|
||||
nodeToExecute.data,
|
||||
reactFlowNodes,
|
||||
incomingInput.question,
|
||||
chatHistory,
|
||||
incomingInput.overrideConfig
|
||||
flowData
|
||||
)
|
||||
nodeToExecuteData = reactFlowNodeData
|
||||
|
||||
|
||||
Reference in New Issue
Block a user