You will need to have node installed on your machine.
Run npm install to install all the dependencies with 'npm i'
Create a .env file and add your API key to the file. Paste this inside: OPENAI_API_KEY=
Place your key from Open AI after the equals.
You will find your personal API key by going to OpenAI.com.
To run the chat bot, run 'npm start' in your terminal.
Type npm start in the file directory.
What is your name: {user input}.
Use GPT as you would normally. For example, you can ask it questions, have it complete a story, or write code that will most likely cause you errors in the future.
- Dotenv - Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env
- Colors - Colors is a package for adding colors to console text.
- OpenAI - OpenAI is the official Node.js package for the OpenAI API.
- Readline-Sync - Readline-Sync is a package for synchronous Readline for interactively running to have a conversation with the user via a console(TTY).