Giter Club home page Giter Club logo

Comments (10)

PlexPt avatar PlexPt commented on May 22, 2024 1

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

作为临时解决方法

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

from chatgpt-mirai-qq-bot.

Xxpain avatar Xxpain commented on May 22, 2024

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

from chatgpt-mirai-qq-bot.

lss233 avatar lss233 commented on May 22, 2024

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

from chatgpt-mirai-qq-bot.

xmexg avatar xmexg commented on May 22, 2024

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

from chatgpt-mirai-qq-bot.

lss233 avatar lss233 commented on May 22, 2024

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

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

from chatgpt-mirai-qq-bot.

xmexg avatar xmexg commented on May 22, 2024

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

from chatgpt-mirai-qq-bot.

PlexPt avatar PlexPt commented on May 22, 2024

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

from chatgpt-mirai-qq-bot.

PlexPt avatar PlexPt commented on May 22, 2024

需要加上这俩
image

from chatgpt-mirai-qq-bot.

PlexPt avatar PlexPt commented on May 22, 2024

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

from chatgpt-mirai-qq-bot.

lss233 avatar lss233 commented on May 22, 2024

一个暂时性的解决方案已更新, 由上游 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,等待验证通过即可使用!

from chatgpt-mirai-qq-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.