this repo forks from https://github.com/fuergaosi233/wechat-chatgpt, Enhanced:
- alidrive search feature.
Use ChatGPT On Wechat via wechaty
English | 中文文档
- Use ChatGPT On Wechat via wechaty
- Support OpenAI Accounts Pool
- Support use proxy to login
- Add conversation Support (Everyone will have their own session)
- Add Dockerfile
- Publish to Docker.hub
- Add Railway deploy
- Auto Reload OpenAI Accounts Pool
- Add sendmessage retry for 429/503
cp config.yaml.example config.yaml
# Change Config.yaml
# run docker command in Linux or WindowsPowerShell
docker run -d --name wechat-ai-assistant -v $(pwd)/config.yaml:/app/config.yaml holegots/wechat-ai-assistant:latest
# login with qrcode
docker logs -f wechat-ai-assistant
# Create and modify config.yaml in the current directory
# run docker command in WindowsPowerShell
docker run -d --name wechat-ai-assistant -v $(pwd)/config.yaml:/app/config.yaml holegots/wechat-ai-assistant:latest
# In the Windows command line (cmd) environment, you may mount the current directory like this:
docker run -d --name wechat-ai-assistant -v %cd%/config.yaml:/app/config.yaml holegots/wechat-ai-assistant:latest
# login with qrcode
docker logs -f wechat-ai-assistant
docker pull holegots/wechat-ai-assistant:latest
docker stop wechat-ai-assistant
docker rm wechat-ai-assistant
docker run -d --name wechat-ai-assistant -v $(pwd)/config.yaml:/app/config.yaml holegots/wechat-ai-assistant:latest
npm install && poetry install
You need copy config file for setting up your project.
cp config.yaml.example config.yaml
If you don't have this OpenAI account and you live in China, you can get it here.
You need get OpenAI account and password. Your config.yaml should be like this:
chatGPTAccountPool:
- email: <your email>
password: <your password>
# if you hope only some keywords can trigger chatgpt on private chat, you can set it like this:
chatPrivateTiggerKeyword: ""
Setup proxy:
export http_proxy=<Your Proxy>
If you cant use email and password to login your openai account or your network can't login, you can use session token. You need to follow these steps:
- Go to https://chat.openai.com/chat and log in or sign up.
- Open dev tools.
- Open Application > Cookies.
- Copy the value for __Secure-next-auth.session-token and save it to your config Your config.yaml should be like this:
chatGPTAccountPool:
- session_token: <your session_token>
npm run dev
If you are logging in for the first time, then you need to scan the qrcode.
👤 holegots
- Twitter: @fuergaosi
- GitHub: @fuergaosi233
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!