Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 694 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 694 Bytes

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