mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-26 02:07:28 +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>
85 lines
2.0 KiB
TypeScript
85 lines
2.0 KiB
TypeScript
import { createDocument } from 'zod-openapi';
|
|
import { ChatPath } from './core/chat';
|
|
import { TagsMap } from './tag';
|
|
import { PluginPath } from './core/plugin';
|
|
import { AppPath } from './core/app';
|
|
import { SupportPath } from './support';
|
|
import { DatasetPath } from './core/dataset';
|
|
import { AIPath } from './core/ai';
|
|
import { AgentSkillsPath } from './core/agentSkills';
|
|
|
|
export const openAPIDocument = createDocument({
|
|
openapi: '3.1.0',
|
|
info: {
|
|
title: 'FastGPT API',
|
|
version: '0.1.0',
|
|
description: 'FastGPT API 文档'
|
|
},
|
|
paths: {
|
|
...AppPath,
|
|
...ChatPath,
|
|
...DatasetPath,
|
|
...PluginPath,
|
|
...SupportPath,
|
|
...AIPath,
|
|
...AgentSkillsPath
|
|
},
|
|
servers: [{ url: '/api' }],
|
|
'x-tagGroups': [
|
|
{
|
|
name: '我的应用/工具管理',
|
|
tags: [TagsMap.appCommon, TagsMap.mcpTools, TagsMap.appPer]
|
|
},
|
|
{
|
|
name: 'Agent 应用',
|
|
tags: [TagsMap.appLog, TagsMap.publishChannel]
|
|
},
|
|
{
|
|
name: 'AI 相关',
|
|
tags: [TagsMap.aiSkill, TagsMap.sandbox]
|
|
},
|
|
{
|
|
name: '对话',
|
|
tags: [TagsMap.chatSetting, TagsMap.chatPage]
|
|
},
|
|
{
|
|
name: '对话管理',
|
|
tags: [TagsMap.chatHistory, TagsMap.chatController, TagsMap.chatFeedback]
|
|
},
|
|
{
|
|
name: '知识库',
|
|
tags: [TagsMap.datasetCollection]
|
|
},
|
|
{
|
|
name: '插件系统',
|
|
tags: [TagsMap.pluginToolTag, TagsMap.pluginTeam]
|
|
},
|
|
{
|
|
name: '用户体系',
|
|
tags: [
|
|
TagsMap.userInform,
|
|
TagsMap.walletBill,
|
|
TagsMap.walletDiscountCoupon,
|
|
TagsMap.userLogin
|
|
]
|
|
},
|
|
{
|
|
name: '通用-核心功能',
|
|
tags: [TagsMap.aiCommon]
|
|
},
|
|
|
|
{
|
|
name: '通用-辅助功能',
|
|
tags: [TagsMap.customDomain, TagsMap.apiKey]
|
|
},
|
|
{
|
|
name: '管理员-插件管理',
|
|
tags: [TagsMap.pluginAdmin, TagsMap.pluginMarketplace, TagsMap.pluginToolAdmin]
|
|
},
|
|
{
|
|
name: '系统接口',
|
|
tags: [TagsMap.helperBot]
|
|
}
|
|
]
|
|
});
|