1
0
This repository has been archived on 2024-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
chatgpt-to-api/docs/TOKEN_CN.md
BlueSkyXN e36311ba44 Update Docs
Update More Docs
2023-05-29 11:23:29 +08:00

24 lines
852 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 获取Token
---
# 参考Pandora项目的作者指导
https://github.com/pengzhile/pandora
获取Token的技术原理 https://zhile.io/2023/05/19/how-to-get-chatgpt-access-token-via-pkce.html
## 第三方接口获取Token
http://ai.fakeopen.com/auth
你需要在这个新的网站的指导下安装浏览器插件官方说明的有效期是14天。支持谷歌微软等第三方登录。我谷歌注册的OpenAI就可以用这个
## 官网获取 Token
https://chat.openai.com/api/auth/session
打开后是个JSON你需要先登录官方的ChatGPT网页版。里面有一个参数就是AccessToken。
# 参考go-chatgpt-api项目的作者指导
https://github.com/linweiyuan/go-chatgpt-api
ChatGPT 登录(返回 accessToken目前仅支持 ChatGPT 账号,谷歌或微软账号没有测试)
```POST /chatgpt/login```