Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 558 Bytes

readme.md

File metadata and controls

16 lines (9 loc) · 558 Bytes

Minimal ChatGPT Completions CLI

Setup

  1. Generate an OpenAI API key and write it to a file in the root directory named openai_api_key
  2. Install the openai Python package, following instructions here

Usage

Run ./main.py -h for a list of options. If a prompt isn't provided using --prompt PROMPT, you can enter one interactively.

Responses and some metadata are also logged to chatgpt.log.

Compatibility

Tested on Python 3.10.9.