/chatgpt-chatbot

Chatbot written in Node.js that uses the ChatGPT API

Primary LanguageJavaScript

ChatGPT Chatbot

This is a ChatGPT chatbot written in Node.js that runs in the terminal

Usage

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