mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
File input (#2270)
* doc * feat: file upload config * perf: chat box file params * feat: markdown show file * feat: chat file store and clear * perf: read file contentType * feat: llm vision config * feat: file url output * perf: plugin error text * perf: image load * feat: ai chat document * perf: file block ui * feat: read file node * feat: file read response field * feat: simple mode support read files * feat: tool call * feat: read file histories * perf: select file * perf: select file config * i18n * i18n * fix: ts; feat: tool response preview result
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
import { i18nT } from '../../../web/i18n/utils';
|
||||
|
||||
/* mongo fs bucket */
|
||||
export enum BucketNameEnum {
|
||||
dataset = 'dataset'
|
||||
dataset = 'dataset',
|
||||
chat = 'chat'
|
||||
}
|
||||
export const bucketNameMap = {
|
||||
[BucketNameEnum.dataset]: {
|
||||
label: 'file.bucket.dataset'
|
||||
label: i18nT('file:bucket_file')
|
||||
},
|
||||
[BucketNameEnum.chat]: {
|
||||
label: i18nT('file:bucket_chat')
|
||||
}
|
||||
};
|
||||
|
||||
export const ReadFileBaseUrl = '/api/common/file/read';
|
||||
|
||||
export const documentFileType = '.txt, .docx, .csv, .xlsx, .pdf, .md, .html, .pptx';
|
||||
|
1
packages/global/common/file/type.d.ts
vendored
1
packages/global/common/file/type.d.ts
vendored
@@ -5,4 +5,5 @@ export type FileTokenQuery = {
|
||||
teamId: string;
|
||||
tmbId: string;
|
||||
fileId: string;
|
||||
expiredTime?: number;
|
||||
};
|
||||
|
Reference in New Issue
Block a user