gptie
v2.0.0
Published
User-friendly command-line client for the ChatGPT
Downloads
5
Maintainers
Readme
Installation
- Install:
npm install -g gptie
- Generate the API key from the OpenAI dashboard
- Set the API key as the
OPENAI_API_KEY
environment variable
Basic Usage
Just type, use ---
delimiter to write multiple lines, and Ctrl-C
to exit.
Advanced Usage
Redirect stdout
or stderr
with pipe (|
), and preprend a message with argument -q
.
Arguments
-h
,--help
- Show help-v
,--version
- Show Version-m "MODEL"
- Override OpenAI model-q "QUERY"
- Query mode
$ gptie -q "how old is the universe?"
-d "DELIMITER"
- Override block delimiter
$ gptie -d "==="
> ===
> Find the bug in the code below (Ruby)
>
> put "Hello World"
> ===
Configuration
OPENAI_API_KEY
OpenAI API key (required)
GPTIE_DEFAULT_DELIMITER
Define block delimiter (default: '---'
)
GPTIE_MESSAGES_PER_CONVERSATION
Define the max number of messages send on request payload (default: '16'
)
GPTIE_OPENAI_MODEL
Specify GPT model on chat requests (default: 'gpt-3.5-turbo'
)
GPTIE_OPENAI_TEMPERATURE
Specify GPT temperature on chat requests (default: '1'
)
License
Copyright (c) 2023-present, Alexandre Magro