Getting annoyed at managing complicated and long prompts and doing substitutions. So creating this helper to make things easier.
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.).
From PyPI:
pip install OpenAIChatHelperOr, to install locally from source:
pip install ./Check out the example script:
python example_usage.py