From e5241d8500817363ca37240b82b84e9303cb675b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=A2=E8=96=AF?= Date: Mon, 9 Sep 2024 14:03:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=B4=E6=97=B6=20token=20?= =?UTF-8?q?=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Serverless API-integration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Serverless API-integration.md b/docs/Serverless API-integration.md index 68afaf8..522fcc8 100644 --- a/docs/Serverless API-integration.md +++ b/docs/Serverless API-integration.md @@ -63,7 +63,8 @@ _https://ai.gitee.com/api/inference/serverless/__resource__(示例)/chat/complet ![alt text](/img/serverless-api/integrated/integrate3.png) - +在一些业务场景中,可能需要让客户端直接调用 Serverless API ,这时候需要将 Access Token 传递给客户端,为了安全起见,建议将 Access Token 存储在后端,通过后端服务代理调用 Serverless API。 +如果希望直接在客户端使用 Access Token ,Gitee AI 提供了创建临时 Token 的接口,该接口的详细使用方法请看 `https://ai.gitee.com/docs/openapi/v1` ## 集成 OpenCat -- Gitee