mirror of
https://github.com/langgenius/dify.git
synced 2025-07-17 06:12:10 +00:00
80 lines
1.4 KiB
TypeScript
80 lines
1.4 KiB
TypeScript
import { VarType } from '@/app/components/workflow/types'
|
|
|
|
export const DEFAULT_FILE_EXTENSIONS_IN_LOCAL_FILE_DATA_SOURCE = [
|
|
'txt',
|
|
'markdown',
|
|
'mdx',
|
|
'pdf',
|
|
'html',
|
|
'xlsx',
|
|
'xls',
|
|
'vtt',
|
|
'properties',
|
|
'doc',
|
|
'docx',
|
|
'csv',
|
|
'eml',
|
|
'msg',
|
|
'pptx',
|
|
'xml',
|
|
'epub',
|
|
'ppt',
|
|
'md',
|
|
'html',
|
|
]
|
|
|
|
export const OUTPUT_VARIABLES_MAP = {
|
|
datasource_type: {
|
|
name: 'datasource_type',
|
|
type: VarType.string,
|
|
description: 'local_file, online_document, website_crawl',
|
|
},
|
|
file: {
|
|
name: 'file',
|
|
type: VarType.file,
|
|
description: 'file',
|
|
subItems: [
|
|
{
|
|
name: 'name',
|
|
type: VarType.string,
|
|
description: '',
|
|
},
|
|
{
|
|
name: 'size',
|
|
type: VarType.number,
|
|
description: '',
|
|
},
|
|
{
|
|
name: 'type',
|
|
type: VarType.string,
|
|
description: '',
|
|
},
|
|
{
|
|
name: 'extension',
|
|
type: VarType.string,
|
|
description: '',
|
|
},
|
|
{
|
|
name: 'mime_type',
|
|
type: VarType.string,
|
|
description: '',
|
|
},
|
|
{
|
|
name: 'transfer_method',
|
|
type: VarType.string,
|
|
description: '',
|
|
},
|
|
{
|
|
name: 'url',
|
|
type: VarType.string,
|
|
description: '',
|
|
},
|
|
{
|
|
name: 'related_id',
|
|
type: VarType.string,
|
|
description: '',
|
|
},
|
|
],
|
|
},
|
|
}
|