mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
4.8.9 test fix (#2291)
* perf: read file icon * perf:icon * fix: i18n * perf: hide pro api * perf: upload expired time * perf: upload file frequency limit * perf: upload file ux * perf: input file tip * perf: qa custom chunk size * feat: dataset openapi * fix: auth dataset list * fix: openapi doc * perf: zero temperature change to 0.01 * perf: read file prompt * perf: read file prompt * perf: free plan tip * feat: cron job usage
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { replaceSensitiveText } from '../string/tools';
|
||||
|
||||
export const getErrText = (err: any, def = '') => {
|
||||
export const getErrText = (err: any, def = ''): any => {
|
||||
const msg: string =
|
||||
typeof err === 'string'
|
||||
? err
|
||||
|
@@ -7,10 +7,12 @@ export enum BucketNameEnum {
|
||||
}
|
||||
export const bucketNameMap = {
|
||||
[BucketNameEnum.dataset]: {
|
||||
label: i18nT('file:bucket_file')
|
||||
label: i18nT('file:bucket_file'),
|
||||
previewExpireMinutes: 30 // 30 minutes
|
||||
},
|
||||
[BucketNameEnum.chat]: {
|
||||
label: i18nT('file:bucket_chat')
|
||||
label: i18nT('file:bucket_chat'),
|
||||
previewExpireMinutes: 7 * 24 * 60 // 7 days
|
||||
}
|
||||
};
|
||||
|
||||
|
1
packages/global/common/file/type.d.ts
vendored
1
packages/global/common/file/type.d.ts
vendored
@@ -5,5 +5,4 @@ export type FileTokenQuery = {
|
||||
teamId: string;
|
||||
tmbId: string;
|
||||
fileId: string;
|
||||
expiredTime?: number;
|
||||
};
|
||||
|
5
packages/global/common/frequenctLimit/type.d.ts
vendored
Normal file
5
packages/global/common/frequenctLimit/type.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type AuthFrequencyLimitProps = {
|
||||
eventId: string;
|
||||
maxAmount: number;
|
||||
expiredTime: Date;
|
||||
};
|
@@ -1,9 +1,9 @@
|
||||
export const Prompt_AgentQA = {
|
||||
description: `<Context></Context> 标记中是一段文本,学习和分析它,并整理学习成果:
|
||||
- 提出问题并给出每个问题的答案。
|
||||
- 答案需详细完整,尽可能保留原文描述。
|
||||
- 答案需详细完整,尽可能保留原文描述,可以适当扩展答案描述。
|
||||
- 答案可以包含普通文字、链接、代码、表格、公示、媒体链接等 Markdown 元素。
|
||||
- 最多提出 30 个问题。
|
||||
- 最多提出 50 个问题。
|
||||
`,
|
||||
fixedText: `请按以下格式整理学习成果:
|
||||
<Context>
|
||||
|
@@ -19,7 +19,7 @@ export const ReadFilesNodes: FlowNodeTemplateType = {
|
||||
flowNodeType: FlowNodeTypeEnum.readFiles,
|
||||
sourceHandle: getHandleConfig(true, true, true, true),
|
||||
targetHandle: getHandleConfig(true, true, true, true),
|
||||
avatar: 'core/app/simpleMode/file',
|
||||
avatar: 'core/workflow/template/readFiles',
|
||||
name: i18nT('app:workflow.read_files'),
|
||||
intro: i18nT('app:workflow.read_files_tip'),
|
||||
showStatus: true,
|
||||
|
@@ -1,8 +1,11 @@
|
||||
import { i18nT } from '../../../../web/i18n/utils';
|
||||
|
||||
export enum UsageSourceEnum {
|
||||
fastgpt = 'fastgpt',
|
||||
api = 'api',
|
||||
shareLink = 'shareLink',
|
||||
training = 'training'
|
||||
training = 'training',
|
||||
cronJob = 'cronJob'
|
||||
}
|
||||
|
||||
export const UsageSourceMap = {
|
||||
@@ -17,5 +20,8 @@ export const UsageSourceMap = {
|
||||
},
|
||||
[UsageSourceEnum.training]: {
|
||||
label: 'dataset.Training Name'
|
||||
},
|
||||
[UsageSourceEnum.cronJob]: {
|
||||
label: i18nT('common:cron_job_run_app')
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user