Skip to content
/ gptie Public

User-friendly command-line client for the ChatGPT

License

Notifications You must be signed in to change notification settings

alxmagro/gptie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An user-friendly command-line client for the ChatGPT.

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

MIT

Copyright (c) 2023-present, Alexandre Magro

About

User-friendly command-line client for the ChatGPT

Resources

License

Stars

Watchers

Forks

Packages

No packages published