+0
Daily
+4
Weekly
+0
Monthly
13,229
stars
3,652
forks
–
watchers
–
prs
–
issues
–
releases
README
!!!! Project Archived 📦 !!!!
This project has been archived. Thank you to everyone who contributed! 🙌😔
Welcome to wechat-chatgpt 👋
Use ChatGPT On Wechat via wechaty
English | 中文文档
🌟 Features
- Interact with WeChat and ChatGPT:
- Use ChatGPT on WeChat with wechaty and Official API
- Add conversation support
- Support command setting
- Deployment and configuration options:
- Add Dockerfile, deployable with docker
- Support deployment using docker compose
- Support Railway and Fly.io deployment
- Other features:
- Support Dall·E
- Support whisper
- Support setting prompt
- Support proxy (in development)
🚀 Usage
- Use with Railway(PaaS, Free, Stable, ✅Recommended)
- Use with Fly.io(Paas, Free, ✅Recommended)
- Use with docker(Self-hosted, Stable, ✅Recommended)
- Use with docker compose(Self-hosted, Stable, ✅Recommended)
- Use with nodejs(Self-hosted)
Use with Railway
Railway offers $5 or 500 hours of runtime per month
1. Click the Railway button to go to the Railway deployment page
2. Click the Deploy Now button to enter the Railway deployment page
3. Fill in the repository name and OPENAI_API_KEY (need to link GitHub account)
4. Click the Deploy button
5. Click the View Logs button and wait for the deployment to complete
Use with Fly.io
Please allocate 512MB memory for the application to meet the application requirements
fly.io offers free bills up to $5(Free Allowances 3 256MB are not included in the bill)
1. Install flyctl
shell
macOS
brew install flyctl
Windows
scoop install flyctl
Linux
curl https://fly.io/install.sh | sh
2. Clone the project and enter the project directory
shell
git clone https://github.com/fuergaosi233/wechat-chatgpt.git && cd wechat-chatgpt
3. Create a new app
shell
➜ flyctl launch
? Would you like to copy its configuration to the new app? No
? App Name (leave blank to use an auto-generated name):
? Select region:
? Would you like to setup a Postgresql database now? No
? Would you like to deploy now? No
4. Configure the environment variables
shell
flyctl secrets set OPENAI_API_KEY="" MODEL=""
5. Deploy the app
shell
flyctl deploy
Use with docker
sh
pull image
docker pull holegots/wechat-chatgpt
run container
docker run -d --name wechat-chatgpt \
-e OPENAI_API_KEY= \
-e MODEL="gpt-3.5-turbo" \
-e CHAT_PRIVATE_TRIGGER_KEYWORD="" \
-v $(pwd)/data:/app/data/wechat-assistant.memory-card.json \
holegots/wechat-chatgpt:latest
View the QR code to log in to wechat
docker logs -f wechat-chatgpt
How to get OPENAI API KEY? Click here
Use with docker compose
sh
Copy the configuration file according to the template
cp .env.example .env
Edit the configuration file
vim .env
Start the container
docker-compose up -d
View the QR code to log in to wechat
docker logs -f wechat-chatgpt
Use with nodejs
You need NodeJS