Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 976 Bytes

chatgpt-cli.md

File metadata and controls

62 lines (41 loc) · 976 Bytes

ChatGPT CLI

Links

Installation

Homebrew

brew tap kardolus/chatgpt-cli
brew install chatgpt-cli

Configuration

# 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-...'

Commands

chatgpt -h

Usage

#
chatgpt what is the capital of the Netherlands

#
cat ./<file-name> | chatgpt 'What kind of toy would Kya enjoy?'

Tips

TBD

cat ./<file-name>.tsx | chatgpt 'Translate each Korean sentence to English.'

Issues

TBD

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