DylanMay / wechat-chatgpt

Use ChatGPT On Wechat via wechaty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to wechat-chatgpt 👋

Version License: ISC Twitter: fuergaosi

Use ChatGPT On Wechat via wechaty

🌟 Feature

  • Use ChatGPT On Wechat via wechaty
  • Support OpenAI Accounts Pool
  • Support use proxy to login
  • Simulated at message receive
  • Add conversions Support
  • Add Dockerfile
  • Add Railray deploy
  • Auto Reload OpenAI Accounts Pool

Install

npm install && poetry install

Usage

Copy config

You need copy config file for setting up your project.

cp config.yaml.example config.yaml

Get and config Openai account

If you don't have this OpenAI account and you live in China, you can get it here.

A:Use account and password

You need get OpenAI account and password. Your config.yaml should be like this:

chatGPTAccountPool:
  - email: <your email>
    password: <your password>

⚠️ Pls make sure your network can log in to OpenAI, and if you fail to login in try setting up a proxy or using SessionToken.
Setup proxy:

export http_proxy=<Your Proxy>

B: Use Session Token

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:

  1. Go to https://chat.openai.com/chat and log in or sign up.
  2. Open dev tools.
  3. Open Application > Cookies. image
  4. 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>

Start Project

npm run dev

If you are logging in for the first time, then you need to scan the qrcode.

Author

👤 holegots

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

About

Use ChatGPT On Wechat via wechaty


Languages

Language:TypeScript 89.3%Language:Python 10.7%