Browse Source

fix: no json output vars in front-page tool (#5943)

tags/0.6.13
非法操作 1 year ago
parent
commit
46eca01fa3
No account linked to committer's email address

+ 4
- 0
web/app/components/workflow/constants.ts View File

variable: 'files', variable: 'files',
type: VarType.arrayFile, type: VarType.arrayFile,
}, },
{
variable: 'json',
type: VarType.arrayObject,
},
] ]


export const PARAMETER_EXTRACTOR_COMMON_STRUCT: Var[] = [ export const PARAMETER_EXTRACTOR_COMMON_STRUCT: Var[] = [

+ 5
- 0
web/app/components/workflow/nodes/tool/panel.tsx View File

type='Array[File]' type='Array[File]'
description={t(`${i18nPrefix}.outputVars.files.title`)} description={t(`${i18nPrefix}.outputVars.files.title`)}
/> />
<VarItem
name='json'
type='Array[Object]'
description={t(`${i18nPrefix}.outputVars.json`)}
/>
</> </>
</OutputVars> </OutputVars>
</div> </div>

+ 1
- 0
web/i18n/en-US/workflow.ts View File

url: 'Image url', url: 'Image url',
upload_file_id: 'Upload file id', upload_file_id: 'Upload file id',
}, },
json: 'tool generated json',
}, },
}, },
questionClassifiers: { questionClassifiers: {

+ 1
- 0
web/i18n/zh-Hans/workflow.ts View File

url: '图片链接', url: '图片链接',
upload_file_id: '上传文件ID', upload_file_id: '上传文件ID',
}, },
json: '工具生成的json',
}, },
}, },
questionClassifiers: { questionClassifiers: {

Loading…
Cancel
Save