A BizWechat Bot that integrates with OpenAI's ChatGPT to provide answers. Ready to use with minimal configuration required. Based on acheong08/ChatGPT and terry3041/pyChatGPT
基于 acheong08/ChatGPT 和 terry3041/pyChatGPT 开发的企业微信聊天机器人
- Reply to specific messages / 回复用户信息
- Can reset conversation thread with the
/reset
command / 发送/reset
来重置对话 - Multi-chat support. Every user has their own chat session / 每个用户有自己独立的对话
- Destroy chatbot after setting expire time to save resources / 会话过期机制, 节省资源
- Python 3
- A BizWechat Coporation Account / 企业微信企业账号
- Knowledge of how to deploy a self host bot in bizwechat / 了解如何搭建企业微信机器人 (如何获取
Token
,EncodingAESKey
,CorpID
,SECRET
,agent_id
等参数) - An OpenAI account / OpenAI 账号
docker run -d --name wx-chatbot -p 8868:8868 -v <YOUR PATH TO CONFIG FILE>:/wx-chatbot/config.yaml gyronee/chatgpt-bizwechat-bot:latest
the bot url is http(s)://host:port/chat
- Clone the repository and navigate to the project directory:
git clone https://github.com/Gyronee/chatgpt-bizwechat-bot.git
cd chatgpt-bizwechat-bot
- Install dependencies
cd src && pip install -r requirements.txt
- Configuration File
create
config.yaml
undersrc
folder, it has two section, one for BizWechatBot, one for ChatGPT
wx-bot:
Token:
EncodingAESKey:
CorpID:
SECRET:
agent_id:
// session_token or email/password, choose one token 和 账户密码二选一即可
chatgpt:
session_token: "<__Secure-next-auth.session-token>"
email: "<YOUR_EMAIL>",
password: "<YOUR_PASSWORD>"
- Launch Application
python main.py
- Enjoy
the bot url is http(s)://host:port/chat
- ChatGPT from OpenAI
- acheong08/ChatGPT for reverse engineering ChatGPT APIs
- terry3041/pyChatGPT for reverse engineering ChatGPT APIs and bypass cloudflare
This is a personal project and is not affiliated with OpenAI in any way.
- 2022-12-14: Change to use [pyChatGPT](https://github.com/terry3041/pyChatGPT