A very simple cli tool for gpt3 prompts written in javascript. Requires Node 18+
npm i -g node-gpt-cli
Create OpenAI API key and assign it to OPENAI_API_KEY
environment variable
OPENAI_API_KEY=<KEY>
gpt3 what is best in life?
echo "what is my name?" | gpt3
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