Code Monkey home page Code Monkey logo

gpt-cli's Introduction

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.

gpt-cli's People

Contributors

arisuvade avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.