0.1.3 • Published 12 months ago

@leurs247/chatgpt-cli v0.1.3

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

chatgpt-cli

A simple CLI-tool to interact with ChatGPT.

Installation

npm install -g @leurs247/chatgpt-cli

Configuration

Set an OpenAI API key

chatgpt config auth set <apiKey>

Get an OpenAI API key

chatgpt config auth get

Delete an OpenAI API key

chatgpt config auth delete

Asking questions

chatgpt ask --q <question> -t <temperature> -m <max-tokens> -d <model>

-q, --question          the question to ask (required)
-t, --temperature       set temperature (default = 1)
-m, --max-tokens        set max. tokens (default = 256)
-d, --model             set model (default = gpt-3.5-turbo)

Global options

-c, --copy              copy the output to the clipboard

License

MIT

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago