From abcf3a89b189ce2be299f3359592d8764f4843dd Mon Sep 17 00:00:00 2001 From: DavidJones Date: Sat, 27 Jan 2024 02:18:17 +0800 Subject: [PATCH] docs: update README --- README.md | 1 + README.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 15818c4..c93415f 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Due to network conditions and geographical locations, access to the Gemini API c - If the `role` of the last or the first message in the message context is not `user`, the error `Please ensure that multiturn requests ends with a user role or a function response.` may occur. Therefore, if the `role` of the first message is not `user`, the service will automatically delete the first (ie. the first) message. If the `role` of the last message is not user, an error will be reported and the message will not be sent to Gemini. - Only when the parameters meet all the conditions of `body`, `key` and `Method`, can a normal request be made, otherwise a `401` error will be returned. - Since Vercel may interrupt data, the service will first return a `200` status, wait for Gemini's reply, and return it to the user in the form of a stream. +- Check the log situation via the Vercel console Log. ## Deploy With Vercel diff --git a/README.zh-CN.md b/README.zh-CN.md index 5ecb35d..e93ac0d 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -17,6 +17,7 @@ Vercel Edge 上的 Gemini API 代理是一项代理服务,旨在解决某些 - 如果消息上下文最后一条信息或第一条信息 `role` 不为 `user` 时,可能会出现 `Please ensure that multiturn requests ends with a user role or a function response.` 错误。因此若第一条信息 `role` 不为 `user`时,服务会自动删除第一条(即第一条)信息。若最后一条信息 `role` 不为 `user` 时,将会报错不会将信息发送给 `Gemini`。 - 仅当参数都满足条件 `body`、`key` 和 `Method`,才能正常请求,否则均返回 `401` 错误。 - 由于 Vercel 可能会中断数据,因此服务会优先返回 `200` 状态,且等待 Gemini 的回复,并通过流的形式返回给用户。 +- 可以通过 Vercel 控制台 Log 查看日志情况。 ## 使用 Vercel 部署