Code Monkey home page Code Monkey logo

cli-gpt's Introduction

A ChatGPT CLI Project

CI Libraries.io dependency status for GitHub repo GitHub issues GitHub GitHub top language

The project's main goal is the creation of a CLI - Command Line Interface to allow Terminal users to interact with the chatGPT API.

How it runs

After we install the project, we can execute the gpt command to see the help, like following:

$ gpt --help
Usage: gpt [OPTIONS] COMMAND [ARGS]...

  CLI from chatGPT This command line interface provides a pleasant terminal-
  based experience for ChatGPT.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  call  Make a question to chatGPT

There is a help about the sub command call, as following:

$ gpt call --help
Usage: gpt call [OPTIONS] PROMPT

  Make a question to chatGPT.

  The PROMPT is the question that you desire do to chatGPT.

Options:
  -n INTEGER  Inform the number of distinct responses you want, the default is 1.
  --help      Show this message and exit.

A simple example of use:

$ gpt call 'Who are Albert Einstein?'

Albert Einstein (1879–1955) was a German-born physicist who developed the theory of relativity and is generally 
considered one of the greatest scientists of all time. His work is also known for its influence on the philosophy of 
science. He received the 1921 Nobel Prize in Physics for his explanation of the photoelectric effect.

cli-gpt's People

Contributors

riverfount avatar

Watchers

 avatar

cli-gpt's Issues

Improve CLI to maintain a context conversation.

At the moment, our CLI just change messages with chatGPT, but it doesn’t maintain the context of this conversation. The purpose of this issue is to write a code that improve the CLI to maintain the context of the conversation.

Improve Makefile

Our Makefile is a standard, and it is used in various projects. We need to improve some existent tasks to reflect the specifics of our cli-gpt project.

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.