mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-16 01:09:01 +08:00
fix:workflow and chat bugs (#6584)
* fix:修复判断器 arrayAny 类型无判断条件可选 * fix:系统工具集不显示版本 * fix:修复视频音频自定义文件类型流程开始无文件链接变量 * fix:输入框会转义成markdown * docs:新增修复
This commit is contained in:
@@ -658,6 +658,41 @@ describe('appData2FlowNodeIO', () => {
|
||||
expect(fileLinkInput).toBeDefined();
|
||||
});
|
||||
|
||||
it.each([
|
||||
{
|
||||
title: 'video selection',
|
||||
fileSelectConfig: {
|
||||
canSelectFile: false,
|
||||
canSelectImg: false,
|
||||
canSelectVideo: true
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'audio selection',
|
||||
fileSelectConfig: {
|
||||
canSelectFile: false,
|
||||
canSelectImg: false,
|
||||
canSelectAudio: true
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'custom file extension selection',
|
||||
fileSelectConfig: {
|
||||
canSelectFile: false,
|
||||
canSelectImg: false,
|
||||
canSelectCustomFileExtension: true
|
||||
}
|
||||
}
|
||||
])('should include file link input when fileSelectConfig allows $title', ({ fileSelectConfig }) => {
|
||||
const result = appData2FlowNodeIO({
|
||||
chatConfig: {
|
||||
fileSelectConfig
|
||||
}
|
||||
});
|
||||
const fileLinkInput = result.inputs.find((i) => i.key === NodeInputKeyEnum.fileUrlList);
|
||||
expect(fileLinkInput).toBeDefined();
|
||||
});
|
||||
|
||||
it('should not include file link input when fileSelectConfig disallows both', () => {
|
||||
const result = appData2FlowNodeIO({
|
||||
chatConfig: {
|
||||
|
||||
Reference in New Issue
Block a user