1.0.16 • Published 8 months ago

@cozminu/gpt-cli v1.0.16

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

GPT-CLI

Interact with ChatGPT directly from the command line

Installation

npm i -g @cozminu/gpt-cli
export OPENAI_API_KEY=<your_openai_api_key>

Usage

  1. Open your terminal or command prompt.

  2. Set the OPENAI_API_KEY environment variable using the command line:

    export OPENAI_API_KEY=<your_openai_api_key>

    Replace <your_openai_api_key> with your actual OpenAI API key. You can generate a new one here: https://platform.openai.com/account/api-keys

  3. Run the application using the following command:

    gpt ask "who wrote The Witcher?"

    or

    gpt chat

Features

  • Single prompt mode

    gpt ask "what is the highest mountain?"
  • Interactive mode

    REPL style prompt, ask follow-up questions, gpt uses short-term memory

    gpt chat
  • Save flag

    Saves conversation to file

    gpt <ask/chat> -s [filename]

Roadmap

⬜ Easier OpenAI API Key (gpt set-key)

⬜ GPT-4 support

⬜ Configuration file (temperature, top_p, model, etc)

⬜ Ask questions from document (pdf, txt)

⬜ Generate document summary

1.0.16

8 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.11

9 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago