mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 11:00:55 +03:00
@@ -159,6 +159,19 @@ export const upsertVector = async (req: Request, isInternal: boolean = false) =>
|
||||
/*** Get API Config ***/
|
||||
const { nodeOverrides, variableOverrides, apiOverrideStatus } = getAPIOverrideConfig(chatflow)
|
||||
|
||||
// For "files" input, add a new node override with the actual input name such as pdfFile, txtFile, etc.
|
||||
for (const nodeLabel in nodeOverrides) {
|
||||
const params = nodeOverrides[nodeLabel]
|
||||
const enabledFileParam = params.find((param) => param.enabled && param.name === 'files')
|
||||
if (enabledFileParam) {
|
||||
const fileInputFieldFromExt = mapExtToInputField(enabledFileParam.type)
|
||||
nodeOverrides[nodeLabel].push({
|
||||
...enabledFileParam,
|
||||
name: fileInputFieldFromExt
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const upsertedResult = await buildFlow({
|
||||
startingNodeIds,
|
||||
reactFlowNodes: nodes,
|
||||
|
||||
Reference in New Issue
Block a user