Giter VIP home page Giter VIP logo

revlibs's Introduction

RevLib Support for QChatGPT

2023/5/14 已支持通过Soulter/hugging-chat-api接入HuggingChat
2023/5/1 不再向New Bing发送情景预设,以防止被拒绝回复。
2023/3/15 现已支持New Bing,请查看下方使用方法。
2023/3/15 OpenAI已开放使用GPT-4模型的ChatGPT,目前仅支持ChatGPT Plus账户使用,请使用!plugin update更新插件,查看revcfg-template.py的账户配置说明并修改revcfg.py文件。

得益于QChatGPT项目的插件功能,此插件将允许接入ChatGPT网页版用以替换原项目主线的GPT-3模型接口,提升回复质量。
官方接口与ChatGPT网页版的区别?

安装方式

若您未安装QChatGPT程序,请先查看原仓库文档
目前已支持**主机使用,请在revcfg.py中修改openai_account字段,按照注释使用access_token方式登录

使用管理员账号私聊机器人发送指令:

!plugin https://github.com/RockChinQ/revLibs

若无法访问GitHub,可以使用Gitee镜像

!plugin https://gitee.com/RockChin/revLibs

等待程序获取源码,并解决依赖,这可能需要数分钟的时间。
安装完毕后,请发送:

!reload

重载插件,生成配置文件,关闭主程序
QChatGPT程序目录编辑revcfg.py文件,根据注释修改必填配置项。
配置完成后重新启动主程序以使用。

选择逆向库

目前支持的逆向库及使用方式如下:

ChatGPT网页版

本插件默认使用的逆向库,使用方法请参考上方文档及配置文件注释。
使用的是 acheong08/ChatGPT

New Bing

使用的是 acheong08/EdgeGPT

  • 修改revcfg.py中的reverse_lib的值为acheong08/EdgeGPT即可,不需要鉴权

配置

  • new bing逆向库默认输出参考资料, 若不需要, 请在revcfg.py中设置:
output_references = False
  • 设置New Bing的风格

查看revcfg.py中的new_bing_style字段,按照说明更改。在运行期间可以通过指令!style <风格(创意、平衡、精确)>来更改风格。

HuggingChat
  1. revcfg.py中修改reverse_lib的值为Soulter/hugging-chat-api
  2. 安装适用于Chrome/EdgeFirefox 的Cookies编辑器插件
  3. 访问 huggingface.co/chat
  4. 打开这个插件
  5. 点击 Export 按钮, 复制JSON格式的Cookies
  6. 在QChatGPT主程序main.py同目录下新建文件hugchat.json, 将刚才复制的内容粘贴进去

🚫请勿修改revcfg-template.py的内容,配置项请在主程序config.py同目录的revcfg.py中修改🚫

revlibs's People

Contributors

rockchinq avatar dependabot[bot] avatar lebensignal avatar lbklb 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.