Merge branch 'master' of https://github.com/acheong08/ChatGPT-to-API
This commit is contained in:
commit
61e906cf91
@ -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)
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user