Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gpt-turbo-cli

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpt-turbo-cli

A CLI that interacts with the gpt-turbo library

latest
Source
npmnpm
Version
5.0.1
Version published
Maintainers
1
Created
Source

GPT Turbo - Implementation - CLI

npm i -g gpt-turbo-cli License: MIT

A CLI that interacts with the gpt-turbo library

GPT Turbo Demo

Installation

npm install -g gpt-turbo-cli

Usage

# Display help for the CLI
gpt-turbo --help

# Start a conversation with the GPT model
gpt-turbo -k <your OpenAI API key>

# Stream the conversation just like ChatGPT
gpt-turbo -k <your OpenAI API key> -s

CLI Options

Here's a table of the CLI options. Note that all CLI arguments can also be passed as environment variables. For example, you can pass your OpenAI API key as GPTTURBO_APIKEY instead of -k. Arguments always take precedence over environment variables. Refer to the library's conversation config for more information on the options default values.

While GPTTURBO_* environment variables must have the value "false" to be set to false, arguments need to be prefixed with --no-. e.g. --no-stream to set streaming to false.

ArgumentAliasEnvironmentTypeDescriptionDefaultRequired
apiKeykGPTTURBO_APIKEYstringYour OpenAI API key(library default)
drydGPTTURBO_DRYbooleanRun the CLI without sending requests to OpenAI (mirror input as output)(library default)
modelmGPTTURBO_MODELstringThe model to use.(library default)
contextcGPTTURBO_CONTEXTstringThe first system message to set the context for the GPT model(library default)
disableModerationMGPTTURBO_DISABLEMODERATIONbooleanDisable message moderation. When left enabled, if dry is true and apiKey is specified, message will still be moderated, since the Moderation API is free.(library default)
streamsGPTTURBO_STREAMbooleanStreams the message instead of waiting for the complete result(library default)
softSGPTTURBO_SOFTMODERATIONbooleanKeep moderating messages, but don't throw an error if the message is not approved. Ignored if disableModeration is true.false
usageuGPTTURBO_SHOWUSAGEbooleanShow the usage window at app startfalse
debugDGPTTURBO_SHOWDEBUGbooleanShow the debug window at app startfalse
saveGPTTURBO_SAVEboolean | stringSave the conversation to a json file. Set to true to use a default timestamped filename, or set to a string to use that as the filename.false
loadGPTTURBO_LOADstringLoad a previously saved conversation from a json file.false

Keywords

openai

FAQs

Package last updated on 07 Oct 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