From a81faa7d8e776143810186d0963cec249b9e29a5 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Fri, 22 Nov 2024 20:01:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20gitee=20ai=20=E9=85=8D=E7=BD=AE=20schema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/schema/provider.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/templates/schema/provider.json b/templates/schema/provider.json index 6b214233..e1d50246 100644 --- a/templates/schema/provider.json +++ b/templates/schema/provider.json @@ -54,6 +54,15 @@ "type": "string" }, "default": [] + }, + "gitee": { + "type": "array", + "title": "Gitee API 密钥", + "description": "Gitee API 密钥", + "items": { + "type": "string" + }, + "default": [] } } }, @@ -160,6 +169,25 @@ "default": 600 } } + }, + "gitee-ai-chat-completions": { + "type": "object", + "title": "Gitee AI API 请求配置", + "description": "仅可编辑 URL 和 超时时间,额外请求参数不支持可视化编辑,请到编辑器编辑", + "properties": { + "base-url": { + "type": "string", + "title": "API URL" + }, + "args": { + "type": "object" + }, + "timeout": { + "type": "number", + "title": "API 请求超时时间", + "default": 120 + } + } } } },