GithubHelp home page GithubHelp logo

navjotsing-dhanawat / prompt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raiyanyahya/prompt

0.0 0.0 0.0 57 KB

๐Ÿฅ A command line application to interact with OpenAI ChatGPT API.

Home Page: https://promptcli.com

License: MIT License

Python 100.00%

prompt's Introduction

Actions Status Actions Status Quality Gate Status CodeQL Codacy Badge [] LinuxmacOS

Prompt ๐Ÿฅ - A ChatGPT CLI

prompt is designed to provide users a command-line interface for the ChatGPT API, which uses OpenAI's GPT language model to generate text based on user input.

The application helps you start a session with ChatGPT so that the context is preserved and longer conversions with contexts are considered. The user's prompts and the responses are sent back to ChatGPT everytime.

The ChatGPT api usage depends on the number of tokens used and it is important that you use the tokens wisely. After a prompt has been answered the application will resend the last prompt and answer in the next prompt, this makes sure you can have a continued conversion with ChatGPT much like using ChatGPT in a single chat session. This makes the token count larger and larger as you continue to chat. If you are not concerned with context use the --clear flag which will save your token usage.

I hope you find it useful.

Configuration

The application requires you to have an api token to query the OpenAI's ChatGPT api. You can read about and get it here https://platform.openai.com/account/api-keys .

Installation

Install the prompt python package directly from pypi.

  pip install promptcli

I would recommend using pipx instead of pip to install cli applications on you machine.

Usage

Usage: prompt [OPTIONS] COMMAND [ARGS]...

  ๐Ÿฅ A command line application to interact with OpenAI's ChatGPT.

Options:
  --version     Show the version and exit.
  --clear    ๐ŸŒŠ Clear the context each round of chat
  --help        Show this message and exit.

Commands:
  update  ๐Ÿ” Update the OpenAI API key.

Please feel to create issues or request for features. More options and commands will be added to the application in the near future.

prompt's People

Contributors

raiyanyahya avatar dependabot[bot] 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.