Skip to content

clfs/chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tiny ChatGPT3 CLI

Resources

License

Stars

Watchers

Forks

Languages