WeChat bot for ChatGPT and Stable Diffusion
Top 51.6% on sourcepulse
This project provides a WeChat bot that integrates with OpenAI's ChatGPT API for conversational AI and Stable Diffusion for AI image generation. It targets users who want to automate WeChat interactions with advanced AI capabilities, offering features like context-aware replies, custom bot personalities, and AI art creation directly within WeChat.
How It Works
The bot leverages a WeChat hook interface, specifically injecting a DLL into a modified WeChat client (version 3.9.5.81 or earlier, or a separate installation for dual-opening). This allows it to intercept and process incoming WeChat messages. It then communicates with OpenAI's API for text generation and Stable Diffusion for image creation, supporting multithreaded operations for concurrent conversations and image generation tasks.
Quick Start & Requirements
pip install -r ./requirements.txt
.\injector.exe -n WeChat.exe -i .\wxinject.dll
), configure JSON files (api_config.json
, server_config.json
, config.json
, sys_character.json
), and run python main.py
.Highlighted Details
Maintenance & Community
Recent updates include fixes for memory leaks and XML parsing (v1.20.2), SDK updates, and support for new WeChat versions. The project is actively developed with frequent commits and feature additions. Users can create issues for support.
Licensing & Compatibility
The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The project requires a specific, potentially older, version of the WeChat client, which might pose compatibility or security concerns. Stable Diffusion functionality is noted as English-only. Usage of OpenAI API incurs costs.
1 year ago
1 day