mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-18 09:24:03 +00:00

* feat: add prompt optimizer (#5444) * feat: add prompt optimizer * fix * perf: variabel replace * perf: prompt optimizer code * feat: init charts shell * perf: user error remove --------- Co-authored-by: heheer <heheer@sealos.io>
64 lines
1.6 KiB
TypeScript
64 lines
1.6 KiB
TypeScript
import { i18nT } from '../../../../web/i18n/utils';
|
|
|
|
export enum UsageSourceEnum {
|
|
fastgpt = 'fastgpt',
|
|
api = 'api',
|
|
shareLink = 'shareLink',
|
|
training = 'training',
|
|
cronJob = 'cronJob',
|
|
share = 'share',
|
|
wecom = 'wecom',
|
|
feishu = 'feishu',
|
|
dingtalk = 'dingtalk',
|
|
official_account = 'official_account',
|
|
pdfParse = 'pdfParse',
|
|
mcp = 'mcp',
|
|
evaluation = 'evaluation',
|
|
optimize_prompt = 'optimize_prompt'
|
|
}
|
|
|
|
export const UsageSourceMap = {
|
|
[UsageSourceEnum.fastgpt]: {
|
|
label: i18nT('common:core.chat.logs.online')
|
|
},
|
|
[UsageSourceEnum.api]: {
|
|
label: 'API'
|
|
},
|
|
[UsageSourceEnum.shareLink]: {
|
|
label: i18nT('common:core.chat.logs.free_login')
|
|
},
|
|
[UsageSourceEnum.training]: {
|
|
label: i18nT('common:dataset.Training Name')
|
|
},
|
|
[UsageSourceEnum.cronJob]: {
|
|
label: i18nT('common:cron_job_run_app')
|
|
},
|
|
[UsageSourceEnum.feishu]: {
|
|
label: i18nT('account_usage:feishu')
|
|
},
|
|
[UsageSourceEnum.official_account]: {
|
|
label: i18nT('account_usage:official_account')
|
|
},
|
|
[UsageSourceEnum.share]: {
|
|
label: i18nT('account_usage:share')
|
|
},
|
|
[UsageSourceEnum.wecom]: {
|
|
label: i18nT('account_usage:wecom')
|
|
},
|
|
[UsageSourceEnum.dingtalk]: {
|
|
label: i18nT('account_usage:dingtalk')
|
|
},
|
|
[UsageSourceEnum.pdfParse]: {
|
|
label: i18nT('account_usage:pdf_parse')
|
|
},
|
|
[UsageSourceEnum.mcp]: {
|
|
label: i18nT('account_usage:mcp')
|
|
},
|
|
[UsageSourceEnum.evaluation]: {
|
|
label: i18nT('account_usage:evaluation')
|
|
},
|
|
[UsageSourceEnum.optimize_prompt]: {
|
|
label: i18nT('common:support.wallet.usage.Optimize Prompt')
|
|
}
|
|
};
|