Skip to content

Minimal command-line interface for ChatGPT Completions API

License

Notifications You must be signed in to change notification settings

alanfriedman/chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Minimal command-line interface for ChatGPT Completions API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages