Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 459 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 459 Bytes

chatgpt

A tiny ChatGPT3 CLI. It uses the most expensive model with maximal token count, so one query can cost up to $0.08 (as of Jan 2023).

Install or update:

go install github.com/clfs/chatgpt@latest

Uninstall:

rm -i $(which chatgpt)

Usage:

$ export GPT3_KEY="sk-..." # this should go in, e.g., ~/.zshenv
$ chatgpt
enter to submit & "q" to stop
> What's the capital of China?
> Beijing is the capital of China.
> q