0.1.96 • Published 9 months ago
@mrawesome/openai-cli v0.1.96
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.gitInstall dependencies:
cd openai-cli
yarnAdd 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:

Changing temperature:

Reading from a file:

Get freaky:

0.1.96
9 months ago
0.1.94
12 months ago
0.1.95
12 months ago
0.1.93
1 year ago
0.1.91
1 year ago
0.1.89
2 years ago
0.1.88
3 years ago
0.1.87
3 years ago
0.1.84
3 years ago
0.1.83
3 years ago
0.1.82
3 years ago
0.1.81
3 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago