This is a ChatGPT chatbot written in Node.js that runs in the terminal
Check out the Medium Post for explanation
Get your OpenAI API key at https://platform.openai.com/account/api-keys
Create a file named .env
and add the following:
OPENAI_API_KEY=YOURKEY
Install dependencies:
npm Install
Run the bot:
npm start
We can store the chat history in platforms like firestore and run an AI based chat application on public server by adding routes and deploying the server.