mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-27 02:08:10 +08:00
aaa7d17ef1
* feat: encapsulate logger (#6535) * feat: encapsulate logger * update engines --------- Co-authored-by: archer <545436317@qq.com> * next config * dev shell * Agent sandbox (#6532) * docs: switch to docs layout and apply black theme (#6533) * feat: add Gemini 3.1 models - Add gemini-3.1-pro-preview (released February 19, 2026) - Add gemini-3.1-flash-lite-preview (released March 3, 2026) Both models support: - 1M context window - 64k max response - Vision - Tool choice * docs: switch to docs layout and apply black theme - Change layout from notebook to docs - Update logo to icon + text format - Apply fumadocs black theme - Simplify global.css (keep only navbar and TOC styles) - Fix icon components to properly accept className props - Add mobile text overflow handling - Update Node engine requirement to >=20.x * doc * doc * lock * fix: ts * doc * doc --------- Co-authored-by: archer <archer@archerdeMac-mini.local> Co-authored-by: archer <545436317@qq.com> * Doc (#6493) * cloud doc * doc refactor * doc move * seo * remove doc * yml * doc * fix: tsconfig * fix: tsconfig * sandbox version (#6497) * sandbox version * add sandbox log * update lock * fix * fix: sandbox * doc * add console * i18n * sandbxo in agent * feat: agent sandbox * lock * feat: sandbox ui * sandbox check exists * env tempalte * doc * lock * sandbox in chat window * sandbox entry * fix: test * rename var * sandbox config tip * update sandbox lifecircle * update prompt * rename provider test * sandbox logger * yml --------- Co-authored-by: Archer <archer@fastgpt.io> Co-authored-by: archer <archer@archerdeMac-mini.local> * perf: sandbox error tip * Add sandbox limit and fix some issue (#6550) * sandbox in plan * fix: some issue * fix: test * editor default path * fix: comment * perf: sandbox worksapce * doc * perf: del sandbox * sandbox build * fix: test * fix: pr comment --------- Co-authored-by: Ryo <whoeverimf5@gmail.com> Co-authored-by: Archer <archer@fastgpt.io> Co-authored-by: archer <archer@archerdeMac-mini.local>
78 lines
1.8 KiB
TypeScript
78 lines
1.8 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';
|
|
|
|
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
|
|
},
|
|
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]
|
|
},
|
|
{
|
|
name: '通用-核心功能',
|
|
tags: [TagsMap.aiCommon]
|
|
},
|
|
|
|
{
|
|
name: '通用-辅助功能',
|
|
tags: [TagsMap.customDomain, TagsMap.apiKey]
|
|
},
|
|
{
|
|
name: '管理员-插件管理',
|
|
tags: [TagsMap.pluginAdmin, TagsMap.pluginMarketplace, TagsMap.pluginToolAdmin]
|
|
},
|
|
{
|
|
name: '系统接口',
|
|
tags: [TagsMap.helperBot]
|
|
}
|
|
]
|
|
});
|