0.1.89 • Published 9 months ago

@mrawesome/openai-cli v0.1.89

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

openai-cli

NOTE: This is very much under construction right now, so there are still a few rough edges. Please file an issue or contact me directly if you find problems.

Installation

Fetch the code

git clone git@github.com:MrAwesome/openai-cli.git
# or https://github.com/MrAwesome/openai-cli.git

Install dependencies:

cd openai-cli
yarn

Add convenience alias:

Add this to your shell config (.zshrc, .bashrc, etc.):

ai() {
    SCRIPT_DIR="${HOME}/openai-cli"
    yarn \
        --cwd="${SCRIPT_DIR}" \
        run -s ts-node \
        "${SCRIPT_DIR}/src/index.ts" openai-completion $*
}

Examples

Console

Basic use:

2023-02-09_20:16:35

Changing temperature:

2023-03-18_21:56:31

Reading from a file:

2023-03-18_22:00:05

Get freaky:

2023-03-18_22:04:54

0.1.89

9 months ago

0.1.88

1 year ago

0.1.87

1 year ago

0.1.84

1 year ago

0.1.83

1 year ago

0.1.82

1 year ago

0.1.81

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago