1
0
This commit is contained in:
Antonio 2023-07-17 04:33:21 +08:00
commit 61e906cf91
2 changed files with 2 additions and 7 deletions

View File

@ -17,9 +17,7 @@
### 获取PUID
PUID就是Personal User ID。这是这个项目中一个特色其他项目没遇到需要这个的不过还是弄一下吧。可能直接访问官网才要使用或搭建的绕过WAF的代理不需要目前第三方代理源已经可以自带绕过WAF
获取链接是 https://chat.openai.com/api/auth/session 打开这个URL会得到一个JSON最前面的 ```{"user":{"id":"user-XXXX","name":"XXXX","email":"XXX",``` 这里面的 user.id 就是我要的PUID至少我的实践是这个我并没有找到作者具体的说明(有可能需要PLUS用户权限作者的说明是用于绕过CloudFlare的速率限制)
`_puid` cookie.
### 获取Access Token
目前有多种方法和原理,这部分内容可以参考 [TOKEN中文手册](docs/TOKEN_CN.md)

View File

@ -11,8 +11,5 @@ services:
SERVER_HOST: 0.0.0.0
SERVER_PORT: 8080
ADMIN_PASSWORD: TotallySecurePassword
# Reverse Proxy - Available on accessToken
API_REVERSE_PROXY: https://bypass.churchless.tech/api/conversation
# If the parameter API_REVERSE_PROXY is empty, the default request URL is https://chat.openai.com/backend-api/conversation, and the PUID is required.
# You can get your PUID for Plus account from the following link: https://chat.openai.com/api/auth/session.
# If the parameter API_REVERSE_PROXY is empty, the default request URL is https://chat.openai.com/backend-api/conversation, and the PUID is <NOT> equired.
PUID: xxx