Giter VIP home page Giter VIP logo

chatgpt-for-wechat's Introduction

ChatGPT For Wechat

UPDATE 2023-01-15

This repository has been archived. There are already great projects to replace this old version.


Build And Publish Docker

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.

πŸ’– List of Thanks

πŸ“Œ Please ensure you complete the following before you start

  • an authenticated wechat used to simulate a web scan login
  • successfully register with OpenAI and get seeion on the web 1

🐟 Use with docker

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

πŸš€ Local development

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

πŸŽ‰ Conversation screenshot

πŸ‘ Find Other excellent projects (additions welcome)

Footnotes

  1. https://github.com/transitive-bullshit/chatgpt-api#session-tokens ↩

  2. https://github.com/UNICKCHENG/Tools-Deployment ↩

chatgpt-for-wechat's People

Contributors

unickcheng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.