@mrawesome/openai-cli
v0.2.0
Published
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.
Readme
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 [email protected]: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:

