forked from aurora-develop/aurora
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ChatGPTUnofficialProxyAPI (aurora-develop#195)
* Add support for ChatGPTUnofficialProxyAPI Add support for ChatGPTUnofficialProxyAPI. 添加 /backend-api/conversation 路由,该路求接收网页版 ChatGPT 格式的请求,返回网页版 ChatGPT 格式的响应。 当环境变量 USE_DB=true 时使用数据库储存 conversation_id 和 oai-device-id 的关系,默认不使用。 支持通过请求头 Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 传入 oai-device-id。 支持同时添加自定义 Authorization 以及 OpenAI accessToken 或 oai-device-id,中间通过空格分隔,例: Authorization: Bearer MySecretWord xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx * Remove database-related functionality. 移除和数据库有关的功能。 向 /backend-api/conversation 接口发起请求时需在 Authorization 请求头携带和对话 conversation_id 相关联的 accessToken 或 oai-device-id。
- Loading branch information
Showing
4 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters