mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
Some checks failed
Build FastGPT images in Personal warehouse / get-vars (push) Has been cancelled
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Has been cancelled
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Has been cancelled
* activity points * modal * ui * fix * pref: zod schema * perf: ad api with zod * perf: plan year switch * perf: plan * i18n * fix: hook * fix: activity checker * fix: i18n * fix clear token * fix * back * can close modal in pay * ad token * rename * fix * total points * eng i18n --------- Co-authored-by: archer <545436317@qq.com>
49 lines
1.2 KiB
TypeScript
49 lines
1.2 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';
|
|
|
|
export const openAPIDocument = createDocument({
|
|
openapi: '3.1.0',
|
|
info: {
|
|
title: 'FastGPT API',
|
|
version: '0.1.0',
|
|
description: 'FastGPT API 文档'
|
|
},
|
|
paths: {
|
|
...AppPath,
|
|
...ChatPath,
|
|
...PluginPath,
|
|
...SupportPath
|
|
},
|
|
servers: [{ url: '/api' }],
|
|
'x-tagGroups': [
|
|
{
|
|
name: 'Agent 应用',
|
|
tags: [TagsMap.appLog, TagsMap.publishChannel]
|
|
},
|
|
{
|
|
name: '对话管理',
|
|
tags: [TagsMap.chatHistory, TagsMap.chatPage, TagsMap.chatFeedback, TagsMap.chatSetting]
|
|
},
|
|
{
|
|
name: '插件系统',
|
|
tags: [TagsMap.pluginToolTag, TagsMap.pluginTeam]
|
|
},
|
|
{
|
|
name: '用户体系',
|
|
tags: [TagsMap.userInform, TagsMap.walletBill, TagsMap.walletDiscountCoupon]
|
|
},
|
|
{
|
|
name: '通用-辅助功能',
|
|
tags: [TagsMap.customDomain, TagsMap.apiKey]
|
|
},
|
|
{
|
|
name: '管理员-插件管理',
|
|
tags: [TagsMap.pluginAdmin, TagsMap.pluginMarketplace, TagsMap.pluginToolAdmin]
|
|
}
|
|
]
|
|
});
|