mirror of
https://github.com/langgenius/dify.git
synced 2026-05-01 16:08:04 +08:00
feat: handle system var
This commit is contained in:
@ -39,6 +39,17 @@ const formatItem = (item: any, isChatMode: boolean): NodeOutPutVar => {
|
||||
type: inputVarTypeToVarType(v.type),
|
||||
}
|
||||
})
|
||||
if (isChatMode) {
|
||||
res.vars.push({
|
||||
variable: 'sys.query',
|
||||
type: VarType.string,
|
||||
})
|
||||
|
||||
res.vars.push({
|
||||
variable: 'sys.files',
|
||||
type: VarType.arrayFile,
|
||||
})
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user