Feat: Import & export the agents. #3851 (#3894)

### What problem does this PR solve?

Feat: Import & export the agents. #3851

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-12-06 13:43:17 +08:00
committed by GitHub
parent c76e7b1e28
commit e64c7dfdf6
12 changed files with 340 additions and 35 deletions

View File

@ -66,27 +66,28 @@ export const LanguageTranslationMap = {
Vietnamese: 'vi',
};
export const FileMimeTypeMap = {
bmp: 'image/bmp',
csv: 'text/csv',
odt: 'application/vnd.oasis.opendocument.text',
doc: 'application/msword',
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
gif: 'image/gif',
htm: 'text/htm',
html: 'text/html',
jpg: 'image/jpg',
jpeg: 'image/jpeg',
pdf: 'application/pdf',
png: 'image/png',
ppt: 'application/vnd.ms-powerpoint',
pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
tiff: 'image/tiff',
txt: 'text/plain',
xls: 'application/vnd.ms-excel',
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
mp4: 'video/mp4',
};
export enum FileMimeType {
Bmp = 'image/bmp',
Csv = 'text/csv',
Odt = 'application/vnd.oasis.opendocument.text',
Doc = 'application/msword',
Docx = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
Gif = 'image/gif',
Htm = 'text/htm',
Html = 'text/html',
Jpg = 'image/jpg',
Jpeg = 'image/jpeg',
Pdf = 'application/pdf',
Png = 'image/png',
Ppt = 'application/vnd.ms-powerpoint',
Pptx = 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
Tiff = 'image/tiff',
Txt = 'text/plain',
Xls = 'application/vnd.ms-excel',
Xlsx = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
Mp4 = 'video/mp4',
Json = 'application/json',
}
export const Domain = 'demo.ragflow.io';