Bugfix/Parse vars from overrideconfig to JSON (#3347)
parse vars from overrideconfig to JSON
This commit is contained in:
parent
d002096759
commit
82da25d763
|
|
@ -184,6 +184,9 @@ export const utilBuildChatflow = async (req: Request, isInternal: boolean = fals
|
|||
|
||||
fs.unlinkSync(file.path)
|
||||
}
|
||||
if (overrideConfig.vars && typeof overrideConfig.vars === 'string') {
|
||||
overrideConfig.vars = JSON.parse(overrideConfig.vars)
|
||||
}
|
||||
incomingInput = {
|
||||
question: req.body.question ?? 'hello',
|
||||
overrideConfig
|
||||
|
|
|
|||
|
|
@ -89,6 +89,9 @@ export const upsertVector = async (req: Request, isInternal: boolean = false) =>
|
|||
|
||||
fs.unlinkSync(file.path)
|
||||
}
|
||||
if (overrideConfig.vars && typeof overrideConfig.vars === 'string') {
|
||||
overrideConfig.vars = JSON.parse(overrideConfig.vars)
|
||||
}
|
||||
incomingInput = {
|
||||
question: req.body.question ?? 'hello',
|
||||
overrideConfig,
|
||||
|
|
|
|||
Loading…
Reference in New Issue