gpt-chatbot-cli


Namegpt-chatbot-cli JSON
Version 0.3.4 PyPI version JSON
download
home_page
SummaryA minimal chatgpt cli
upload_time2023-04-07 05:20:20
maintainer
docs_urlNone
author
requires_python
license
keywords chatgpt gpt-chatbot chatgpt-cli
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "gpt-chatbot-cli",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "chatgpt,gpt-chatbot,chatgpt-cli",
    "author": "",
    "author_email": "Ruben Kharel <talkto@rubenk.com.np>",
    "download_url": "https://files.pythonhosted.org/packages/82/e6/b737ef85c194aa681b7e753ef7bab4cf73a6b457764f8b0632f0589a365b/gpt-chatbot-cli-0.3.4.tar.gz",
    "platform": null,
    "description": "# Chatgpt-cli\n\nIt's a very minimal cli prompt, where you can chat and keeping the conversation session memorable by chatgpt.\n\n## Install\n\nAssuming you created a env variable with key named `OPENAI_API_KEY`.\nIf you don't have a api key [visit here](https://platform.openai.com/account/api-keys) and generate one.\n\n```\nvim ~/.bashrc\nexports OPENAI_API_KEY=<YOUR OPENAI API KEY>\n```\n---\n\n```\n$ pip3 install gpt-chatbot-cli\n```\n\n## Usage\n\n```bash\n$ gpt-chatbot-cli --help\n\nUsage: gpt-chatbot-cli [OPTIONS]\n\n  A CLI for OpenAI's GPT-3 API. Chat with a bot, ask questions, correct\n  grammar, summarize text, and more.\n\n  Examples:\n      gpt-chatbot-cli\n      gpt-chatbot-cli --api_key=YOUR_API_KEY\n      gpt-chatbot-cli --api_key=YOUR_API_KEY --model=text-davinci-003 --temperature=0.7\n      gpt-chatbot-cli -m gpt-4 -t 0.8 -p \"q&a\"\n\nOptions:\n  -k, --api_key TEXT       Openai API key. If not provided, will prompt for it\n                           or use the environment variable OPENAI_API_KEY.\n  -m, --model TEXT         Model to use for text generation | (default:\n                           gpt-3.5-turbo)\n  -t, --temperature FLOAT  Temperature for text generation | (default: 0.9)\n  -p, --preset TEXT        Preset mode to use for text generation | (default:\n                           Chat)  Available presets: Chat, Q&A, Grammar\n                           Correction, Eli5, Custom\n  -hs, --history           Show chat history picker | (default: False)\n  -h, --help               Show this message and exit.\n```\n\n\n## Demo\n\n[![asciicast](https://asciinema.org/a/uJSqTyzTX4QReLyHE3CMXRogM.svg)](https://asciinema.org/a/uJSqTyzTX4QReLyHE3CMXRogM)\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A minimal chatgpt cli",
    "version": "0.3.4",
    "split_keywords": [
        "chatgpt",
        "gpt-chatbot",
        "chatgpt-cli"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "42c06685b57b97783a542d9ab88761dcbb4c5387dc4f35ca645b16d64fa6c44c",
                "md5": "4fd86f61ec067645fb49097d76413165",
                "sha256": "f512649437d3081b6c1b9054de0102941bf6ae8d1e91f0932ea10863f79fb6d4"
            },
            "downloads": -1,
            "filename": "gpt_chatbot_cli-0.3.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4fd86f61ec067645fb49097d76413165",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8854,
            "upload_time": "2023-04-07T05:20:18",
            "upload_time_iso_8601": "2023-04-07T05:20:18.968778Z",
            "url": "https://files.pythonhosted.org/packages/42/c0/6685b57b97783a542d9ab88761dcbb4c5387dc4f35ca645b16d64fa6c44c/gpt_chatbot_cli-0.3.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82e6b737ef85c194aa681b7e753ef7bab4cf73a6b457764f8b0632f0589a365b",
                "md5": "ee9da72c495a675b11c1de31b939be63",
                "sha256": "5a16916cfd8f822733a323bb62b0c80f22c16fb7f8c31cce3d5a1b66cbe49631"
            },
            "downloads": -1,
            "filename": "gpt-chatbot-cli-0.3.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ee9da72c495a675b11c1de31b939be63",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6867,
            "upload_time": "2023-04-07T05:20:20",
            "upload_time_iso_8601": "2023-04-07T05:20:20.879249Z",
            "url": "https://files.pythonhosted.org/packages/82/e6/b737ef85c194aa681b7e753ef7bab4cf73a6b457764f8b0632f0589a365b/gpt-chatbot-cli-0.3.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-07 05:20:20",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "gpt-chatbot-cli"
}
        
Elapsed time: 0.05369s