mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-22 11:55:07 +00:00
perf: variabel replace;Feat: prompt optimizer code (#5453)
* 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>
This commit is contained in:
@@ -13,7 +13,8 @@ export enum UsageSourceEnum {
|
||||
official_account = 'official_account',
|
||||
pdfParse = 'pdfParse',
|
||||
mcp = 'mcp',
|
||||
evaluation = 'evaluation'
|
||||
evaluation = 'evaluation',
|
||||
optimize_prompt = 'optimize_prompt'
|
||||
}
|
||||
|
||||
export const UsageSourceMap = {
|
||||
@@ -55,5 +56,8 @@ export const UsageSourceMap = {
|
||||
},
|
||||
[UsageSourceEnum.evaluation]: {
|
||||
label: i18nT('account_usage:evaluation')
|
||||
},
|
||||
[UsageSourceEnum.optimize_prompt]: {
|
||||
label: i18nT('common:support.wallet.usage.Optimize Prompt')
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user