Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 796 Bytes

File metadata and controls

40 lines (24 loc) · 796 Bytes

OpenAIChatHelper

Getting annoyed at managing complicated and long prompts and doing substitutions. So creating this helper to make things easier.

🚀 Installation

1. Set up your API key

Get your OpenAI API key from OpenAI API Keys.

Then, export it as an environment variable:

export OPENAI_API_KEY="YOUR_API_KEY_HERE"

To make this persistent, add the above line to your shell configuration file (~/.bashrc, ~/.zshrc, etc.).

2. Install the package

From PyPI:

pip install OpenAIChatHelper

Or, to install locally from source:

pip install ./

💡 Usage

Check out the example script:

python example_usage.py