WeChat-AIChatbot-WinOnly Project Overview
Introduction
The WeChat-AIChatbot-WinOnly project is a Windows-exclusive initiative and is a modified version based on the original chatgpt-on-wechat. It utilizes the framework of the source project and extends support for both PC and enterprise WeChat clients on Windows. The project is developed by a single individual and is continuously updated with plans for future plugin developments. Patience and support are appreciated!
Current support includes messaging channels and functionalities such as:
-
Wework: Personal account messaging on PC through the enterprise WeChat channel, relying on ntwork, restricted to WeCom version 4.0.8.6027. It exclusively runs on the Windows platform. Messaging capabilities include:
- Sending: Text, images, videos, files, group chat mentions, link cards, GIFs
- Receiving: All message types
- Limitation: Cannot send voice messages
-
WeChat: Personal account messaging on PC through the ntchat project. It supports a Python environment up to version 3.10, restricted to WeChat version 3.6.0.18. It is Windows-only. Messaging capabilities include:
- Sending: Text, images, videos, files, group chat mentions, link cards, GIFs
- Receiving: All message types
- Additional features: Accept friend requests, create groups, add friends to groups, invite friends to groups, remove group members, change group names and announcements
- Limitation: Cannot send voice messages
Detailed Feature List
- Chat Conversations: Supports private and group chats through fastgpt, openai, azure, and WenxinYiyan dialogue models.
- Voice Conversations: Optional voice or text replies for voice messages. Supports Azure, OpenAI voice models, and only file format for voice replies. Weworktop offers voice message replies.
- Art Plugin: Default OpenAI drawing support, including MJ drawing plugin. Prioritizes adapting Hayi's API upon availability.
- Networking Plugin: Built-in networking plugin using GPT's function calling, with ongoing optimizations.
- High Customization: Uses fastgpt API for different knowledge bases per group chat.
Updates
- August 15, 2023: Updated FastGpt integration for individual group knowledge bases.
- August 8, 2023: Added Wework personal account messaging channel.
- July 25, 2023: Added WeChat messaging channel, compatible with FastGPT API by configuring open_ai_api_key and open_ai_api_base.
Getting Started
Preparation
-
Operating Environment
- Windows only with Python installed.
- Recommended Python version between 3.7.1 and 3.10.
-
Download the Project Code
git clone https://github.com/chazzjimel/WeChat-AIChatbot-WinOnly cd chatgpt-on-wechat/
-
Install Core Dependencies
pip3 install -r requirements.txt
-
Optional Dependencies
pip3 install -r requirements-optional.txt
tiktoken
requires Python 3.8 or above for accurate token usage calculation.ffmpeg
is required for Google or Baidu voice recognition (not needed for default OpenAI recognition).
Configuration
-
Template found in
config-template.json
. Copy and createconfig.json
for active configuration.cp config-template.json config.json
-
Adjust
config.json
according to personal needs.
Operating
-
Local Execution (Default WeChat Client on Windows)
python3 app.py
-
PC Deployment for WeChat (Windows Only)
- Install ntchat dependencies.
- Install WeChat version 3.6.0.18, log in, and disable updates.
- Set
channel_type
to"ntchat"
inconfig.json
. - Run
app.py
.
-
PC Deployment for Wework (Windows Only)
- Install ntwork dependencies.
- Use WeCom version 4.0.8.6027, log in, disable updates.
- Set
channel_type
to"wework"
inconfig.json
. - Run
app.py
.
-
Advanced Wework Deployment (Windows Only)
- Similar WeCom setup as above.
- Set
channel_type
to"weworktop"
inconfig.json
. - Run
WeworkApi.exe
and thenapp.py
.
Features Showcase
The project accommodates a comprehensive range of features with visual demonstrations available through screenshots linked in the project repository.
The WeChat-AIChatbot-WinOnly project exemplifies a robust, versatile chatbot system tailored specifically for Windows environments, providing substantial support for both individual and corporate WeChat users.