Skip to main content

A helper package for OpenAI API

Project description

OpenAIChatHelper

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

Installation

First, obtain your OpenAI API key from OpenAI API Keys.

Then, export your API key as an environment variable:

export OPENAI_API_KEY="YOUR_API_KEY_HERE"

To avoid repeating this every session, add the line to your ~/.bashrc or ~/.zshrc.

Install the package locally:

pip install ./

Usage

See example_usage.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openaichathelper-0.1.1.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openaichathelper-0.1.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file openaichathelper-0.1.1.tar.gz.

File metadata

  • Download URL: openaichathelper-0.1.1.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for openaichathelper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ed082b614361ac06c6f8bee01beb5789bc12d39b9ecdb449629f6207141555f5
MD5 c9466547414492e7547da990ce735806
BLAKE2b-256 4b51aa567761600d8a685db90efe5122ae35ee96dc60f9b99c9d7fcefaec43b8

See more details on using hashes here.

File details

Details for the file openaichathelper-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openaichathelper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f399da81f9ec6f79ac463219fb3f75e0822be447130d625945ba62d7267491a
MD5 dbac0a87bdbf2e03ddd07dad7b507efb
BLAKE2b-256 64f346c9d3e680596d3cfdac1090aa02d2e171d4d1a00c345c0ec0382f945423

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page