Reverse Engineered ChatGPT by OpenAI. Extensible for chatbots etc.
This is not an official OpenAI product. This is a personal project and is not affiliated with OpenAI in any way. Don't sue me
- No moderation
- Programmable
npm install tchatgpt
Go to https://chat.openai.com/chat and log in or sign up
- Open console with
F12
- Open
Application
tab > Cookies - Copy the value for
__Secure-next-auth.session-token
and paste it intoconfig.json.example
undersession_token
. You do not need to fill outAuthorization
const { Chatbot } = require('tchatgpt');
const config = require('./config.json');
const chatbot = new Chatbot(config);
chatbot.refresh_session().then(() => {
chatbot.get_chat_response('Hello').then(console.log);
});
Make sure you run refresh_session
if you are only using the session_token
.
Refresh every so often in case the token expires.