Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 2.65 KB

README.md

File metadata and controls

52 lines (39 loc) · 2.65 KB

ChatGPT-Replit

Replit Template for the unofficial ChatGPT API.

Get ChatGPT-API working with just one click in your Replit account. Feel free to copy this Template and start using it!

What is this?

This is a bash REPL with Node v18 that demonstrates (unofficial) ChatGPT-API running in a Headful Puppeteer (Chromium) on Replit.

Please consider that this is not the official OpenAI ChatGPT API.

What I need to use it?

  1. A Replit account
  2. An OpenAI account (either a direct account, a Google, or a Microsoft account).

Google and Microsoft accounts doesn't require solving a Captcha when logging in. If you decide for the OpenAI e-mail account, you'll need to solve the captcha either manually (through the Replit Output) or using a third-party service that can solve it for you.

How to use it?

  1. Fork the Replit Template to your account
  2. Create two Replit Secrets (Tools > Secrets): one for your EMAIL and one for your PASSWORD. This is important to keep your account info private.
  3. Set the account type by changing "isLogin" variables inside the 'index.js' file ./js/index.js:
  • For OpenAI Account, both values have to be false:
const isGoogleLogin = false;
const isMicrosoftLogin = false;
  • For Google Account, set Google to true and Microsoft to false:
const isGoogleLogin = true;
const isMicrosoftLogin = false;
  • For Microsoft Account, set Google to false and Microsoft to true:
const isGoogleLogin = false;
const isMicrosoftLogin = true;
  1. You're all set! Press 'Run' to say "Hello World" to your ChatGPT instance

  2. Edit the index.js to use the ChatGPT-API according to your needs

Happy Building! 🚀

If you like it, considering following me for future updates and works:

Special thanks: