From bd86c5d6ce0ce3ffce3fa0ab2e525e1d4f0e796e Mon Sep 17 00:00:00 2001 From: liu Date: Fri, 8 Nov 2024 11:40:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20Serverless=20API?= =?UTF-8?q?=20(Open=20AI)=20=E6=96=87=E6=A1=A3=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index e6f7abb..f332de7 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -122,6 +122,10 @@ const config: Config = { label: 'Serverless API', to: '/docs/openapi/serverless', }, + { + label: 'Serverless API (Open AI)', + to: '/docs/openapi/v1', + }, { label: '平台接口', to: '/docs/openapi/base', @@ -258,6 +262,26 @@ const config: Config = { }, } as ScalarOptions, ], + [ + '@scalar/docusaurus', + { + id: 'openapi/v1', + label: '', + route: '/docs/openapi/v1', + configuration: { + spec: { + url: 'https://ai.gitee.com/v1/yaml', + }, + hideModels: true, + servers: [ + { + url: 'https://ai.gitee.com/v1', + description: '生产服务器', + }, + ], + }, + } as ScalarOptions, + ], [ 'docusaurus-plugin-remote-content', { -- Gitee