mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00

* fix: img read * fix: price page init data * perf: ai model avatar * perf: refresh in change team * perf: null checker * perf: usage code * fix: reasoning tokens * fix: workflow basic node cannot upgrade * perf: model refresh * perf: icon refresh
24 lines
906 B
TypeScript
24 lines
906 B
TypeScript
import { i18nT } from '../../../web/i18n/utils';
|
|
|
|
/* mongo fs bucket */
|
|
export enum BucketNameEnum {
|
|
dataset = 'dataset',
|
|
chat = 'chat'
|
|
}
|
|
export const bucketNameMap = {
|
|
[BucketNameEnum.dataset]: {
|
|
label: i18nT('file:bucket_file'),
|
|
previewExpireMinutes: 30 // 30 minutes
|
|
},
|
|
[BucketNameEnum.chat]: {
|
|
label: i18nT('file:bucket_chat'),
|
|
previewExpireMinutes: 7 * 24 * 60 // 7 days
|
|
}
|
|
};
|
|
|
|
export const ReadFileBaseUrl = `${process.env.FILE_DOMAIN || process.env.FE_DOMAIN || ''}${process.env.NEXT_PUBLIC_BASE_URL || ''}/api/common/file/read`;
|
|
|
|
export const documentFileType = '.txt, .docx, .csv, .xlsx, .pdf, .md, .html, .pptx';
|
|
export const imageFileType =
|
|
'.jpg, .jpeg, .png, .gif, .bmp, .webp, .svg, .tiff, .tif, .ico, .heic, .heif, .avif, .raw, .cr2, .nef, .arw, .dng, .psd, .ai, .eps, .emf, .wmf, .jfif, .exif, .pgm, .ppm, .pbm, .jp2, .j2k, .jpf, .jpx, .jpm, .mj2, .xbm, .pcx';
|