mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-07 01:02:55 +08:00
57a505f837
* chore: Rename service & container names for consistency in Docker configs (#6710) * chore: Rename container names for consistency in Docker configs * chore: Rename service names for consistency in Docker configs chore: Update OpenSandbox versions and image repositories (#6709) * chore: Update OpenSandbox versions and image repositories * yml version * images * init yml * port --------- Co-authored-by: archer <545436317@qq.com> refactor(chat): optimize sandbox status logic and decouple UI/Status hooks (#6713) * refactor(chat): optimize sandbox status logic and decouple UI/Status hooks * fix: useRef, rename onClose to afterClose Update .env.template (#6720) aiproxy默认的请求地址改成http协议 feat: comprehensive agent skill management and sandbox infrastructure optimization - Skill System: Implemented a full skill management module including CRUD operations, folder organization, AI-driven skill generation, and versioning (switch/update). - Sandbox Infrastructure: Introduced 'volume-manager' for PVC and Docker volume lifecycle management, replacing the MinIO sync-agent for better data persistence. - Workflow Integration: Enhanced the Agent node to support skill selection and configuration, including new UI components and data normalization. - Permission Management: Added granular permission controls for skills, supporting collaborators, owner transfers, and permission inheritance. - UI/UX: Added a dedicated Skill dashboard, sandbox debug interface (terminal, logs, and iframe proxy), and comprehensive i18n support. - Maintenance: Migrated Docker services to named volumes, optimized sandbox instance limits, and improved error handling for sandbox providers. Co-authored-by: chanzhi82020 <chenzhi@sangfor.com.cn> Co-authored-by: lavine77 Signed-off-by: Jon <ljp@sangfor.com.cn> feat: hide skill prettier * perf: hide skill code * fix: ts * lock * perf: tool code * fix: ts * lock * fix: test * fix: openapi * lock * fix: test * null model --------- Co-authored-by: archer <545436317@qq.com>
88 lines
2.2 KiB
TypeScript
88 lines
2.2 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',
|
|
wechat = 'wechat',
|
|
feishu = 'feishu',
|
|
dingtalk = 'dingtalk',
|
|
official_account = 'official_account',
|
|
pdfParse = 'pdfParse',
|
|
mcp = 'mcp',
|
|
evaluation = 'evaluation',
|
|
optimize_prompt = 'optimize_prompt',
|
|
code_copilot = 'code_copilot',
|
|
assist_generate_skill = 'assist_generate_skill'
|
|
}
|
|
|
|
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.wechat]: {
|
|
label: i18nT('account_usage:wechat')
|
|
},
|
|
[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')
|
|
},
|
|
[UsageSourceEnum.code_copilot]: {
|
|
label: i18nT('common:support.wallet.usage.Code Copilot')
|
|
},
|
|
[UsageSourceEnum.assist_generate_skill]: {
|
|
label: i18nT('common:support.wallet.usage.Assist Generate Skill')
|
|
}
|
|
};
|
|
|
|
export enum UsageItemTypeEnum {
|
|
training_vector = 1,
|
|
training_qa = 2,
|
|
training_autoIndex = 3,
|
|
training_imageIndex = 4,
|
|
training_paragraph = 5,
|
|
training_imageParse = 6,
|
|
|
|
evaluation_generateAnswer = 7,
|
|
evaluation_answerAccuracy = 8
|
|
}
|