Skip to main content

A minimal chatgpt cli

Project description

Chatgpt-cli

It's a very minimal cli prompt, where you can chat and keeping the conversation session memorable by chatgpt.

Install

Assuming you created a env variable with key named OPENAI_API_KEY. If you don't have a api key visit here and generate one.

vim ~/.bashrc
exports OPENAI_API_KEY=<YOUR OPENAI API KEY>

$ pip3 install gpt-chatbot-cli

Usage

$ gpt-chatbot-cli --help

Usage: gpt-chatbot-cli [OPTIONS]

  A CLI for OpenAI's GPT-3 API. Chat with a bot, ask questions, correct
  grammar, summarize text, and more.

  Examples:
      gpt-chatbot-cli
      gpt-chatbot-cli --api_key=YOUR_API_KEY
      gpt-chatbot-cli --api_key=YOUR_API_KEY --model=text-davinci-003 --temperature=0.7
      gpt-chatbot-cli -m gpt-4 -t 0.8 -p "q&a"

Options:
  -k, --api_key TEXT       Openai API key. If not provided, will prompt for it
                           or use the environment variable OPENAI_API_KEY.
  -m, --model TEXT         Model to use for text generation | (default:
                           gpt-3.5-turbo)
  -t, --temperature FLOAT  Temperature for text generation | (default: 0.9)
  -p, --preset TEXT        Preset mode to use for text generation | (default:
                           Chat)  Available presets: Chat, Q&A, Grammar
                           Correction, Eli5, Custom
  -hs, --history           Show chat history picker | (default: False)
  -h, --help               Show this message and exit.

Demo

asciicast

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpt-chatbot-cli-0.3.4.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

gpt_chatbot_cli-0.3.4-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file gpt-chatbot-cli-0.3.4.tar.gz.

File metadata

  • Download URL: gpt-chatbot-cli-0.3.4.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for gpt-chatbot-cli-0.3.4.tar.gz
Algorithm Hash digest
SHA256 5a16916cfd8f822733a323bb62b0c80f22c16fb7f8c31cce3d5a1b66cbe49631
MD5 ee9da72c495a675b11c1de31b939be63
BLAKE2b-256 82e6b737ef85c194aa681b7e753ef7bab4cf73a6b457764f8b0632f0589a365b

See more details on using hashes here.

File details

Details for the file gpt_chatbot_cli-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gpt_chatbot_cli-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f512649437d3081b6c1b9054de0102941bf6ae8d1e91f0932ea10863f79fb6d4
MD5 4fd86f61ec067645fb49097d76413165
BLAKE2b-256 42c06685b57b97783a542d9ab88761dcbb4c5387dc4f35ca645b16d64fa6c44c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page