mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
* perf: zod with app log (#6083) * perf: safe decode * perf: zod with app log * fix: text * remove log * rename field * refactor: improve like/dislike interaction (#6080) * refactor: improve like/dislike interaction * button style & merge status * perf * fix * i18n * feedback ui * format * api optimize * openapi * read status --------- Co-authored-by: archer <545436317@qq.com> * perf: remove empty chat * perf: delete resource tip * fix: confirm * feedback filter * fix: ts * perf: linker scroll * perf: feedback ui * fix: plugin file input store * fix: max tokens * update comment * fix: condition value type * fix feedback (#6095) * fix feedback * text * list * fix: versionid --------- Co-authored-by: archer <545436317@qq.com> * fix: chat setting render;export logs filter * add test * perf: log list api * perf: redirect check * perf: log list * create ui * create ui --------- Co-authored-by: heheer <heheer@sealos.io>
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
import { createDocument } from 'zod-openapi';
|
|
import { ChatPath } from './core/chat';
|
|
import { ApiKeyPath } from './support/openapi';
|
|
import { TagsMap } from './tag';
|
|
import { PluginPath } from './core/plugin';
|
|
import { WalletPath } from './support/wallet';
|
|
import { CustomDomainPath } from './support/customDomain';
|
|
import { AppPath } from './core/app';
|
|
|
|
export const openAPIDocument = createDocument({
|
|
openapi: '3.1.0',
|
|
info: {
|
|
title: 'FastGPT API',
|
|
version: '0.1.0',
|
|
description: 'FastGPT API 文档'
|
|
},
|
|
paths: {
|
|
...AppPath,
|
|
...ChatPath,
|
|
...ApiKeyPath,
|
|
...PluginPath,
|
|
...WalletPath,
|
|
...CustomDomainPath
|
|
},
|
|
servers: [{ url: '/api' }],
|
|
'x-tagGroups': [
|
|
{
|
|
name: 'Agent 应用',
|
|
tags: [TagsMap.appLog]
|
|
},
|
|
{
|
|
name: '对话管理',
|
|
tags: [TagsMap.chatSetting, TagsMap.chatPage, TagsMap.chatFeedback]
|
|
},
|
|
{
|
|
name: '插件系统',
|
|
tags: [TagsMap.pluginToolTag, TagsMap.pluginTeam]
|
|
},
|
|
{
|
|
name: '支付系统',
|
|
tags: [TagsMap.walletBill, TagsMap.walletDiscountCoupon]
|
|
},
|
|
{
|
|
name: '通用-辅助功能',
|
|
tags: [TagsMap.customDomain, TagsMap.apiKey]
|
|
},
|
|
{
|
|
name: '管理员-插件管理',
|
|
tags: [TagsMap.pluginAdmin, TagsMap.pluginMarketplace, TagsMap.pluginToolAdmin]
|
|
}
|
|
]
|
|
});
|