Skip to content

Commit

Permalink
fix for replacement of $flow values inside text.
Browse files Browse the repository at this point in the history
  • Loading branch information
raffareis committed Aug 26, 2024
1 parent fd4fb6f commit bbf8cee
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/server/src/utils/buildChatflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,22 @@ export const utilBuildChatflow = async (req: Request, socketIO?: Server, isInter
nodeToExecute.data = replaceInputsWithConfig(nodeToExecute.data, incomingInput.overrideConfig)
}

const options: ICommonObject = {
chatflowid,
chatId,
sessionId,
chatHistory,
...incomingInput.overrideConfig
}

const reactFlowNodeData: INodeData = await resolveVariables(
appServer.AppDataSource,
nodeToExecute.data,
reactFlowNodes,
incomingInput.question,
chatHistory,
incomingInput.overrideConfig
incomingInput.overrideConfig,
options
)
nodeToExecuteData = reactFlowNodeData

Expand Down

0 comments on commit bbf8cee

Please sign in to comment.