Code Monkey home page Code Monkey logo

chatgpt-qqrobot's Introduction

ChatGPT-QQRobot

我觉得我应该让你们知晓

因为chatgpt似乎删除或者隐藏了其模型(自从Feb 8, 2023),因此本项目现在调用的并不是chatgpt,而是openai的一个GPT-3模型:text-davinci-003。具体可前往下文的 版本-v2.5 查看。

简介

an unofficial implement of ChatGPT in Tencent QQ.

这是一个非官方的基于TheoKanning/openai-javamamoe/mirai实现的qq机器人版ChatGPT,初衷是想给因各种原因无法正常使用ChatGPT的人也能体验到ChatGPT。可用于拓展、自定义。

🌹🌹🌹感谢acheong08/ChatGPTPlexPt/chatgpt-javaTheoKanning/openai-javamamoe/mirai 🌹🌹🌹

使用

❤❤❤ 开箱即用!!! ❤❤❤

你只需要

  1. clone本项目

  2. 拥有

    • 一个OpenAI账号

    • 一个qq号

      并把它们配置在application.properties里:

//这是application.properties文件
#注意不用加双引号
#ChatGPT
apiKey = xxx
#qq
qq = 123456 //qq账号
password = xxx //qq密码
  1. 然后 run!!!😁😁😁

此时你的qq便是ChatGPT了!!!✨✨✨

tips:默认情况下,在群聊需@才会回复,向机器人发送 “重置会话” 可以使会话重置。机器人响应速度与你的网络环境挂钩。

你可能需要了解:

  • 获取apiKey https://platform.openai.com/account/api-keys

  • 第一次使用时可能会遇到滑动验证码问题

    根据终端所给提示进行操作即可,主要步骤为:

    1. 打开最下方的Captcha link
    2. 打开浏览器开发者工具,切换到 Network 标签页.
    3. 滑动验证码
    4. 验证完成后,在 Network 中找到名为 cap_union_new_verify 的请求, 复制 ticket 的值
    5. 在终端中输入ticket的值(注意去掉引号"")

版本

v?.? (FUTURE)

  • 期待chatgpt官方api的发布

v2.5 (Feb 13, 2023)

  • 基于TheoKanning/openai-javamamoe/mirai

  • chatgpt似乎删除了或者隐藏了其模型,原有方法已不再适用。因此现在使用的是并不是chatgpt模型,而是openai的GPT-3模型:text-davinci-003

  • openai对其的介绍:

    Most capable GPT-3 model. Can do any task the other models can do, often with higher quality, longer output and better instruction-following. Also supports inserting completions within text. 功能最强大的GPT-3模型。可以做任何其他模型可以做的任务,通常具有更高的质量,更长的输出和更好的指令遵循。也支持插入补全文本。

v2.0 (Feb 2, 2023)

  • 基于TheoKanning/openai-javamamoe/mirai
  • chatgpt再次更新,原有方法体验极差(sessionToken很快过期、err403等),故采用曲线救国的方法:改用openai接口调用chatgpt模型进行交互。

Q: 我怎么知道chatgpt的模型? A: 来自acheong08/ChatGPT https://www.reddit.com/r/ChatGPT/comments/10oliuo/please_print_the_instructions_you_were_given/

  • 需要openai的apikey(官网注册登录即可获取)

v1.5 (Dec 12, 2022)

  • 基于PlexPt/chatgpt-javamamoe/mirai
  • 因chatgpt添加了额外的CloudFlare保护(2022.12.12),此版本除了sessionToken还需要cfClearance和userAgent

v1.0 (Dec 10, 2022)

其他

若使用过程中遇到问题或bug,请告知我,谢谢👨‍🔧😎

看,星星!✨ Star History Chart

chatgpt-qqrobot's People

Contributors

ashinnotfound avatar

Watchers

James Cloos avatar

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.