princejoogie / chatgpt-cli

chatgpt in cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chatgpt-cli

ChatGpt in your terminal

pwsh_dVWwkFR8TQ

Usage

Generate an API key -> https://platform.openai.com/account/api-keys

# .bashrc or .zshrc
export OPENAI_API_KEY=your-api-key
# this environment variable is used as authentication in openai's api endpoints
$ npm install -g @princejoogie/chatgpt-cli
$ gpt # this is the bin when installing the package globally

Todo

  • Response streaming
  • Conversation history
  • Model change (default gpt-3.5-turbo)

Develop

$ pnpm install
$ pnpm dev   # terminal 1
$ pnpm start # terminal 2

Made with ☕ by Prince Carlo Juguilon

About

chatgpt in cli

License:MIT License


Languages

Language:TypeScript 79.6%Language:JavaScript 20.4%