Node.js client for the unofficial ChatGPT API and unofficial WhatsApp Baileys API.
Make sure you have nodejs installed on your computer.
1. Clone this repo
2. run `npm install`
3. set `openaiKey` in config.json
4. run:
node index.js
or
nodemon index.jsNote
Per the official OpenAI Discord on December 7th, 2022: The ChatGPT servers are currently experiencing "exceptionally high demand," so some requests may slow d(https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503).
To get a key openapi:
- Go to https://openai.com/api and log in or sign up.
- Click Personal Profile.
- View API Keys
- Click Button Create New Secret Key then show popup modal API key generated, Copy the value and save it to your config.json file.
After running with node index.js or nodemon index.js in console terminal a qrcode image will appear, scan qrcode with whatsapp application oon your handphone. OoOhh, this is like login whatsapp on whatsapp web.
This package is ESM-only. It supports:
- Node.js >= 16.8
You can try it on this number +62857-0059-0347 write any message then the chatGPT bot will reply to it