Metadata-Version: 2.1
Name: gpt-chatbot-cli
Version: 0.3.4
Summary: A minimal chatgpt cli
Author-email: Ruben Kharel <talkto@rubenk.com.np>
Project-URL: Homepage, https://github.com/slithery0/gpt-chatbot-cli
Project-URL: Bug Tracker, https://github.com/slithery0/gpt-chatbot-cli/issues
Keywords: chatgpt,gpt-chatbot,chatgpt-cli
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENCE

# 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](https://platform.openai.com/account/api-keys) and generate one.

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

```
$ pip3 install gpt-chatbot-cli
```

## Usage

```bash
$ 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](https://asciinema.org/a/uJSqTyzTX4QReLyHE3CMXRogM.svg)](https://asciinema.org/a/uJSqTyzTX4QReLyHE3CMXRogM)
