Skip to main content

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

Metadata

Release files for gpt-chatbot-cli 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpt-chatbot-cli 0.3.4
File Size Uploaded
gpt-chatbot-cli-0.3.4.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpt-chatbot-cli 0.3.4
File Interpreter ABI Platform
gpt_chatbot_cli-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.7 kB

Release files / gpt-chatbot-cli-0.3.4.tar.gz

Download URL gpt-chatbot-cli-0.3.4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5a16916cfd8f822733a323bb62b0c80f22c16fb7f8c31cce3d5a1b66cbe49631
BLAKE2b-256 checksum
How to use checksums
82e6b737ef85c194aa681b7e753ef7bab4cf73a6b457764f8b0632f0589a365b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / gpt_chatbot_cli-0.3.4-py3-none-any.whl

Download URL gpt_chatbot_cli-0.3.4-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f512649437d3081b6c1b9054de0102941bf6ae8d1e91f0932ea10863f79fb6d4
BLAKE2b-256 checksum
How to use checksums
42c06685b57b97783a542d9ab88761dcbb4c5387dc4f35ca645b16d64fa6c44c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page