This repository has been archived. There are already great projects to replace this old version.
ChatGPT-For-Wechat is a project using wechaty/wechaty that aims to call interfaces such as ChatGPT from within WeChat. I don't intend this project to be limited to ChatGPT, just like OpenAI is not limited to ChatGPT, and there are many better projects that have already implemented this functionality and even integrated it into WeChat open platform, WeChat Mini Program, etc.
- Thanks to wechaty/wechaty's solution for connecting to WeChat and web protocol support
- Thanks to OpenAI for the OpenAI API and ChatGPT
- Thanks to all open source projects for sharing ideas and techniques
- an authenticated wechat used to simulate a web scan login
- successfully register with OpenAI and get
seeion
on the web 1
Verify the local environment2
docker version
docker compose version
Create docker-compose.yml
and .env
file in the same directory
- the contents of
docker-compose.yml
are copied directly from docker-compose - the contents of
.env
are copied from .example.env οΌand you need to modify<your-seeion-token>
Starting services
# > step 1 starting services
docker compose up -d
# > step 2 print logs to scan loginοΌafter successful ctrl+c exit
docker logs -f chatGPT
# if you don't want to use chatGPT
docker compose down
Verify the local environment
# node version >= 16
# npm version >= 7
node -v
npm -v
git -v
Building and starting services
# > step 1 download source code
git clone https://github.com/UNICKCHENG/ChatGPT-For-Wechat.git
# > step 2 configure the .env information
# !!! Please modify the contents of `.env`
cp .example.env .env
# > step 3 installing dependencies
npm install
# > step 4 starting services
npm run dev
- transitive-bullshit/chatgpt-api: unofficial ChatGPT API
- fuergaosi233/wechat-chatgpt: support for email and password logins ChatGPT
- sunshanpeng/wechaty-chatgpt: a wechat bot demo connected to ChatGPT