Comments (10)
今天,OpenAI 添加了额外的 Cloudflare 保护,这使得访问非官方 API 变得更加困难。 这会影响目前所有的 ChatGPT API 包装器,包括 Python 包装器。 请参阅此问题。
作为临时解决方法
- 登录 https://chat.openai.com/chat 并复制一个新的会话令牌(与下面的说明相同)。
- 复制 cf_clearance cookie 的值并将其存储在 CLEARANCE_TOKEN 环境变量以及您的 SESSION_TOKEN 中。
- 从浏览器网络选项卡中的任何请求中复制浏览器的用户代理标头。
- 创建 API 包装器时同时使用令牌和用户代理
from chatgpt-mirai-qq-bot.
同样的问题,无法正常工作,
from chatgpt-mirai-qq-bot.
可以使用反向代理功能绕过 Cloudflare,具体实施方案稍后更新
from chatgpt-mirai-qq-bot.
from chatgpt-mirai-qq-bot.
你需要把 revChatGPT 升级到 0.0.37.3 或以上
from chatgpt-mirai-qq-bot.
依旧无法登录,下图尝试使用cookie登录
下图尝试使用密码登录
from chatgpt-mirai-qq-bot.
请检查以上参数是否正确,是否过期。并且获取以上参数的浏览器要和本程序在同一IP地址
from chatgpt-mirai-qq-bot.
from chatgpt-mirai-qq-bot.
这里有一个过cf参考https://github.com/VeNoMouS/cloudscraper
from chatgpt-mirai-qq-bot.
一个暂时性的解决方案已更新, 由上游 revChatGPT 提供。当前正在使用的用户,可以根据以下步骤升级到最新版。
- 更新至最新版 revChatGPT
pip install --upgrade revChatGPT==0.0a41
- 下载并安装 Chrome
Ubuntu 用户安装教程: https://askubuntu.com/questions/510056/how-to-install-google-chrome
(云服务器用户如果没有图形界面,可以安装 Xvfb)
-
使用
session_token
登录,不需要设置cf_clearance
。此方法已在 README 中介绍。 -
重新启动
bot.py
,等待验证通过即可使用!
from chatgpt-mirai-qq-bot.
Related Issues (20)
- 如何删除已安装在电脑中的文件 HOT 1
- [BUG] 在使用Mirai登录QQ时,报错,无法正常登录
- [BUG] QQ无法登录,GPT连接正常
- 希望可以将内容审核使用的服务从百度云更改为阿里云
- 希望可以添加chatglm的在线版,智谱清言,还有兼容一下OhMyGPT HOT 1
- 希望能添加gpt的遗忘功能 HOT 2
- 'python' 不是内部或外部命令,也不是可运行的程序[BUG] 请填写标题 HOT 1
- [BUG] 连接到反向WebSocket Universal服务器 ws://127.0.0.1:8566/ws 时出现错误 HOT 2
- Mirai 版 qq密码填写错误
- [BUG] 配置保存失败
- 群聊内容输入有bug
- [BUG] gpt4free无法正常使用
- [Feature] 可以支持Claude API模式吗
- Can your application be placed on html website, on each html page?
- [Feature] 請求添加Google Gemini HOT 1
- openAI账号登录失败 HOT 1
- [Feature] 可以使用 PublicAffairs/openai-gemini 来实现接入Gemini Pro
- [BUG] ErrorOpenAI: {} (code: 400)
- [BUG] 请填写标题 HOT 2
- [BUG] 日志貌似全部正常,但无法获得回复 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-mirai-qq-bot.