SnapdragonLee / ChatGPT-weBot

Chat with ChatGPT (gpt-3.5 or newer),WeChat hook interface based
655 stars 117 forks source link
bot chatgpt stable-diffusion updates-api wechat wechatbot

ChatGPT-weBot

[TOC]

GitHub tag (latest by date)

Using ChatGPT-weBot based on ChatGPT(API key call), Stable Diffusion AI drawing and official WeChat hook interface. 中文文档 | English

Author

Snapdragon Lee (github.com)

cover created from DALL·E3 (openai.com)

Support & Features

Default configs (Follow steps before you start server)

---> Configurable options detailed guide

Step to Start

  1. Environment: Windows 7+, python 3.7+

  2. Install all packages listed in requirements.txt , use the command like:

    pip install -r ./requirements.txt

    Note that v1.2 requires more packages to be installed and upgraded, so please execute this command once after upgrading.

  3. Download package from Github Releases. (You can download it step by step when they are mentioned)

  4. Install WeChat-3.9.5.81.exe on your computer, if your version is higher than 3.9.5.81, you can downgrade instantly, or install seperately in other directory. Afterwards, please start it as an administrator and log in. If you want to dual-open WeChat, you need to install two different versions and modify ./dual-start.bat according to the comments , the subsequent steps are slightly different, please continue to read [here](. /doc/Dual_Start.md).

  5. Monitoring WeChat message by running a server. It has been modified to 1 solution after version V1.20:

    >  cd .\wxinject\bin\
    >  .\injector.exe -n WeChat.exe -i .\wxinject.dll
  6. The last step is fill json files listed in .config/ .

    • In api_config.json, you need to fill in your own parameter settings for API calls. If you don’t know the specific parameters, you only need to fill in the "api_key" and optional "proxy" items.

    • In server_config.json, you can customize the listening address and port. If you don’t know it exactly, no modification needed by default.

    • In config.json , you need to configure your custom options based on your preferences.

    • In sys_character.json, you can customize the character the bot needs to play, and use the command to activate when chatting.

  7. Run main.py by using command:

    python main.py

    Everything is ready, feel free to go online with your ChatGPT-weBot !

    No limitation, but since switching to OpenAI API, there are usage counts and payment requirements.

Q&A

  1. How to get all response? You can say "continue" in your language.

  2. Have problems? Feel free to create an issue.

  3. How to trace problems in multithreaded program? Print or using debug with information of thread-stack.

  4. Have any preview images related to functionality? Yes, go to -> Preview

  5. Wanna buy me coffee? Thank you, qrcode is as follows.

    image-20230321150123666

Who has starred

Stargazers repo roster for @SnapdragonLee/ChatGPT-weBot

Stargazers over time

Stargazers over time

Log

Reference