Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件需要更新,现在都不能用了 #32

Closed
ghost opened this issue Dec 12, 2022 · 10 comments
Closed

插件需要更新,现在都不能用了 #32

ghost opened this issue Dec 12, 2022 · 10 comments

Comments

@ghost
Copy link

ghost commented Dec 12, 2022

acheong08/ChatGPT#261

@Xxpain
Copy link

Xxpain commented Dec 12, 2022

同样的问题,无法正常工作,

@PlexPt
Copy link
Contributor

PlexPt commented Dec 12, 2022

今天,OpenAI 添加了额外的 Cloudflare 保护,这使得访问非官方 API 变得更加困难。 这会影响目前所有的 ChatGPT API 包装器,包括 Python 包装器。 请参阅此问题

作为临时解决方法

  1. 登录 https://chat.openai.com/chat 并复制一个新的会话令牌(与下面的说明相同)。
  2. 复制 cf_clearance cookie 的值并将其存储在 CLEARANCE_TOKEN 环境变量以及您的 SESSION_TOKEN 中。
  3. 从浏览器网络选项卡中的任何请求中复制浏览器的用户代理标头。
  4. 创建 API 包装器时同时使用令牌和用户代理

@lss233
Copy link
Owner

lss233 commented Dec 12, 2022

可以使用反向代理功能绕过 Cloudflare,具体实施方案稍后更新

@xmexg
Copy link

xmexg commented Dec 12, 2022

发生错误
image
我的配置文件如下
image

@lss233
Copy link
Owner

lss233 commented Dec 12, 2022

发生错误 image 我的配置文件如下 image

你需要把 revChatGPT 升级到 0.0.37.3 或以上

@xmexg
Copy link

xmexg commented Dec 12, 2022

依旧无法登录,下图尝试使用cookie登录
image
下图尝试使用密码登录
image

@PlexPt
Copy link
Contributor

PlexPt commented Dec 12, 2022

请检查以上参数是否正确,是否过期。并且获取以上参数的浏览器要和本程序在同一IP地址

@PlexPt
Copy link
Contributor

PlexPt commented Dec 12, 2022

需要加上这俩
image

@PlexPt
Copy link
Contributor

PlexPt commented Dec 12, 2022

这里有一个过cf参考https://github.com/VeNoMouS/cloudscraper

@lss233
Copy link
Owner

lss233 commented Dec 12, 2022

一个暂时性的解决方案已更新, 由上游 revChatGPT 提供。当前正在使用的用户,可以根据以下步骤升级到最新版。

  1. 更新至最新版 revChatGPT
pip install --upgrade revChatGPT==0.0a41
  1. 下载并安装 Chrome

Ubuntu 用户安装教程: https://askubuntu.com/questions/510056/how-to-install-google-chrome

(云服务器用户如果没有图形界面,可以安装 Xvfb)

  1. 使用 session_token 登录,不需要设置 cf_clearance。此方法已在 README 中介绍。

  2. 重新启动 bot.py,等待验证通过即可使用!

This was referenced Dec 12, 2022
@lss233 lss233 closed this as completed Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants