brew tap kardolus/chatgpt-cli
brew install chatgpt-cli
# https://platform.openai.com/account/api-keys
export OPENAI_API_ORG='org-...'
export OPENAI_API_HOST='https://api.openai.com'
export OPENAI_API_KEY='sk-...'
chatgpt -h
#
chatgpt what is the capital of the Netherlands
#
cat ./<file-name> | chatgpt 'What kind of toy would Kya enjoy?'
cat ./<file-name>.tsx | chatgpt 'Translate each Korean sentence to English.'
http status 429: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
TODO