Skip to content

ohall/gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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  

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published