mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 11:01:18 +03:00
Bugfix/Parse vars from overrideconfig to JSON (#3347)
parse vars from overrideconfig to JSON
This commit is contained in:
@@ -184,6 +184,9 @@ export const utilBuildChatflow = async (req: Request, isInternal: boolean = fals
|
|||||||
|
|
||||||
fs.unlinkSync(file.path)
|
fs.unlinkSync(file.path)
|
||||||
}
|
}
|
||||||
|
if (overrideConfig.vars && typeof overrideConfig.vars === 'string') {
|
||||||
|
overrideConfig.vars = JSON.parse(overrideConfig.vars)
|
||||||
|
}
|
||||||
incomingInput = {
|
incomingInput = {
|
||||||
question: req.body.question ?? 'hello',
|
question: req.body.question ?? 'hello',
|
||||||
overrideConfig
|
overrideConfig
|
||||||
|
|||||||
@@ -89,6 +89,9 @@ export const upsertVector = async (req: Request, isInternal: boolean = false) =>
|
|||||||
|
|
||||||
fs.unlinkSync(file.path)
|
fs.unlinkSync(file.path)
|
||||||
}
|
}
|
||||||
|
if (overrideConfig.vars && typeof overrideConfig.vars === 'string') {
|
||||||
|
overrideConfig.vars = JSON.parse(overrideConfig.vars)
|
||||||
|
}
|
||||||
incomingInput = {
|
incomingInput = {
|
||||||
question: req.body.question ?? 'hello',
|
question: req.body.question ?? 'hello',
|
||||||
overrideConfig,
|
overrideConfig,
|
||||||
|
|||||||
Reference in New Issue
Block a user