Metadata-Version: 2.1
Name: gpt-cli
Version: 0.0.6
Summary: OpenAI interaction from CLI
Home-page: https://github.com/phx/gpt-cli
Author: phx
Author-email: phx@example.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# gpt-cli

This is a command line tool used for interacting with OpenAI's API.

Default model is `text-davinci-003` (which ChatGPT was originally built from).

This tool requires the following environment variables to be set:

- `OPENAI_API_KEY`
- `OPENAI_ORGANIZATION_ID`

You can further tweak functionality by setting the following additional environment variables:

- `OPENAI_MODEL`
- `OPENAI_DEFAULT_PROMPT`
- `OPENAI_LOGFILE`
- `OPENAI_TEMPERATURE`
- `OPENAI_MAX_TOKENS`

All environment variables can be set by filling in values from `example.env`, renaming that file to `.env`, and running `./bin/gpt 'Your prompt here'`.

Alternately, you can pass them all on the command line using something like this:

```
OPENAI_API_KEY=foo OPENAI_ORGANIZATION_ID=bar ./bin/gpt 'Your prompt here'
```

If installing from PyPi, set the `OPENAI_API_KEY` and `OPENAI_ORGANIZATION_ID` in your `~/.bashrc` or `~/.zshrc`, and run as follows:

```
gpt 'Your prompt here'
```

## Installation:

`python3 -m pip install gpt-cli`

