Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gptie

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gptie

User-friendly command-line client for the ChatGPT

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
10
66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

chatbot

FAQs

Package last updated on 22 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts