5.0.1 • Published 7 months ago

gpt-turbo-cli v5.0.1

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

GPT Turbo - Implementation - CLI

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

A CLI that interacts with the gpt-turbo library

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
5.0.1

7 months ago

5.0.0

9 months ago

4.5.0

10 months ago

4.3.2

10 months ago

4.4.0

10 months ago

4.0.0

11 months ago

4.3.0

10 months ago

4.2.0

10 months ago

3.4.0

1 year ago

3.1.3

1 year ago

3.3.0

1 year ago

3.1.2

1 year ago

3.2.0

1 year ago

3.1.1

1 year ago

3.5.2

1 year ago

3.5.1

1 year ago

3.5.0

1 year ago

3.1.0

1 year ago

3.0.0

1 year ago

2.2.2

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago