Skip to content

j0ehax/cmd-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

You will need to have node installed on your machine.

Installing

Run npm install to install all the dependencies with 'npm i'

What to do next

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.

Running the chat bot

To run the chat bot, run 'npm start' in your terminal.

Example

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.

Built With

  • Node - The JavaScript runtime used
  • OpenAI - The API used, remember to get your API key

Dependencies

  • 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).

About

ChatGPT inside your terminal. OpenAI v4.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published