node-gpt-cli
v1.1.1
Published
A NodeJS GPT3 CLI client
Downloads
6
Readme
Node gpt3 CLI
A very simple cli tool for gpt3 prompts written in javascript. Requires Node 18+
Install
npm i -g node-gpt-cli
Add your API key
Create OpenAI API key and assign it to OPENAI_API_KEY
environment variable
OPENAI_API_KEY=<KEY>
Pass prompts to it
gpt3 what is best in life?
Pipe in prompts
echo "what is my name?" | gpt3
Parameter configs
On install, default parmeters are written to ~/.node-gpt-config.json
. You can modify them there.
model: 'text-davinci-003',
max_tokens: 2048,
temperature: 0