Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

arisuvade/gpt-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Command Line ChatGPT

This is a Command Line Interface (CLI) tool that allows you to chat with the ChatGPT language model. The ChatGPT model is a large language model trained by OpenAI, based on the GPT-3.5 architecture.

This CLI tool makes it easy to quickly generate responses to any prompts you provide, making it an ideal tool for testing and exploring the capabilities of the ChatGPT model.

Requirements

To use this CLI tool, you need to have the following requirements installed:

Installation

  1. Go to ~/.bashrc or ~/.zshrc depends on your shell. Add this line:
export OPENAI_API_KEY=<your_OpenAI_API_key_here>
  1. Clone this repository:
$ git clone https://github.com/arisuvade/commandline-chatgpt.git
  1. Install the required dependencies:
$ cd commandline-chatgpt
$ ./install.sh
  1. Activate chatgpt's environment:
$ ./activate.sh

Usage

  1. Run ChatGPT:
$ chatgpt
  1. Ask question:
$ ask "question"
  1. Enter your prompt and wait for the model to generate a response.

Example

Here's an example of how to use this CLI tool:

$ chatgpt
$ ask "does AI poop?"
$ Consulting with robots...
$ "As an AI language model, I do not have a physical body or digestive system, so I don't produce waste or poop."

Inspiration

This project was inspired by the Beebom tutorial on how to use ChatGPT in the Linux terminal.