😎高稳定性、🧩支持插件、🦄多模态的 ChatGPT QQ / QQ频道 / One Bot 机器人🤖 | 支持 OpenAI GPT、GPT 4o、Claude、Gemini Pro、DeepSeek、Moonshot(Kimi)、gpt4free、One API 的 QQ / QQ频道 / OneBot 机器人 / Agent 平台
Go to file
dependabot[bot] ecebd1b0e0
chore(deps): update openai requirement from ~=0.27.7 to ~=0.27.8
Updates the requirements on [openai](https://github.com/openai/openai-python) to permit the latest version.
- [Release notes](https://github.com/openai/openai-python/releases)
- [Commits](https://github.com/openai/openai-python/compare/v0.27.7...v0.27.8)

---
updated-dependencies:
- dependency-name: openai
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 09:01:51 +00:00
.devcontainer chore: 添加devcontainer配置 2023-03-17 07:39:16 +00:00
.github chore: issue模板新增登录框架字段 2023-04-24 19:28:00 +08:00
pkg Release v2.4.6 2023-06-08 14:01:18 +08:00
plugins feat: 删除plugins/__init__.py的内容 2023-01-17 14:30:28 +08:00
res doc: 修改wiki 2023-06-07 23:49:09 +08:00
scenario feat: 使用模板储存默认的json格式的情景预设 2023-03-10 23:26:36 +08:00
tests chore: 删除冗余的兼容性检查判断 2023-04-06 20:34:56 +08:00
.gitignore chore: 排除hugchat.json 2023-05-21 17:47:42 +08:00
config-template.py chore: 添加开关和提示语配置项 2023-06-08 13:20:33 +08:00
CONTRIBUTING.md Create CONTRIBUTING.md 2023-03-03 19:48:55 +08:00
Dockerfile Dockerfile部署 2023-03-24 19:58:27 +08:00
LICENSE Create LICENSE 2022-12-10 11:06:55 +08:00
main.py feat: 初始化流程异常处理 2023-05-31 18:24:01 +08:00
override-all.json Update override-all.json 2023-06-08 05:20:55 +00:00
README_en.md doc(README_en.md): 添加wakapi计时 2023-05-29 11:12:07 +08:00
README.md doc(README.md): 添加卖号网站 2023-06-12 14:13:36 +08:00
requirements.txt chore(deps): update openai requirement from ~=0.27.7 to ~=0.27.8 2023-06-12 09:01:51 +00:00
tips-custom-template.py feat: 支持在token超限时自动重置会话 2023-06-08 13:45:54 +08:00

QChatGPT🤖

QChatGPT

English | 简体中文

GitHub release (latest by date) Wakapi Count

  • Refer to Wiki to get further information.
  • Official QQ group: 656285629
  • Community QQ group: 362515018
  • QQ channel robot: QQChannelChatGPT
  • Any contribution is welcome, please refer to CONTRIBUTING.md

🍺List of supported models

Details

Chat

  • OpenAI GPT-3.5 (ChatGPT API), default model
  • OpenAI GPT-3, supported natively, switch to it in config.py
  • OpenAI GPT-4, supported natively, qualification for internal testing required, switch to it in config.py
  • ChatGPT website edition (GPT-3.5), see revLibs plugin
  • ChatGPT website edition (GPT-4), ChatGPT plus subscription required, see revLibs plugin
  • New Bing, see revLibs plugin
  • HuggingChat, see revLibs plugin, English only

Story

Image

Voice

Install this plugin to switch between different models.

Function Points

Details
  • Sensitive word filtering, avoid being banned
  • Multiple responding rules, including regular expression matching
  • Multiple api-key management, automatic switching when exceeding
  • Support for customizing the preset prompt text
  • Chat, story, image, voice, etc. models are supported
  • Support for hot reloading and hot updating
  • Support for plugin loading
  • Blacklist mechanism for private chat and group chat
  • Excellent long message processing strategy
  • Reply rate limitation
  • Support for network proxy
  • Support for customizing the output format

More details, see Wiki(cn)

🔩Deployment

If you encounter any problems during deployment, please search in the issue of QChatGPT or qcg-installer first.

- Register OpenAI account

If you want to use a model other than OpenAI (such as New Bing), you can skip this step and directly refer to following steps, and then configure it according to the relevant plugin documentation.

To register OpenAI account, please refer to the following articles(in Chinese):

国内注册ChatGPT的方法(100%可用)
手把手教你如何注册ChatGPT超级详细

Check your api-key in personal center after registration, and then follow the following steps to deploy.

- Deploy Automatically

Details

Docker

See this document(cn)
Contributed by @mikumifa

Installer

Use this installer to deploy.

  • The installer currently only supports some platforms, please refer to the repository document for details, and manually deploy for other platforms

- Deploy Manually

Manually deployment supports any platforms
  • Python 3.9.x or higher

配置QQ登录框架

Currently supports mirai and go-cqhttp, configure either one

mirai

Follow this tutorial(cn) to configure Mirai and YiriMirai.
After starting mirai-console, use the login command to log in to the QQ account, and keep the mirai-console running.

go-cqhttp
  1. Follow this tutorial(cn) to configure go-cqhttp.
  2. Start go-cqhttp, make sure it is logged in and running.

Configure QChatGPT

  1. Clone the repository
git clone https://github.com/RockChinQ/QChatGPT
cd QChatGPT
  1. Install dependencies
pip3 install requests yiri-mirai openai colorlog func_timeout dulwich Pillow nakuru-project-idk
  1. Generate config.py
python3 main.py
  1. Edit config.py

  2. Run

python3 main.py

Any problems, please refer to the issues page.

🚀Usage

After deployment, please read: Commands(cn)

For more details, please refer to the Wiki(cn)

🧩Plugin Ecosystem

Plugin usage and development are supported.

List of plugins (cn)

Examples

tests/plugin_examples目录下,将其整个目录复制到plugins目录下即可使用

  • cmdcn - 主程序指令中文形式
  • hello_plugin - 在收到消息hello时回复相应消息
  • urlikethisijustsix - 收到冒犯性消息时回复相应消息

More Plugins

欢迎提交新的插件

😘Thanks

And all contributors and other friends who support this project.