Skip to content

admin-amaris/node-red-contrib-openai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-red-contrib-openai

Node-RED node for openai

Install

To install the stable version use the Menu - Manage palette - Install option and search for node-red-contrib-openai, or run the following command in your Node-RED user directory, typically ~/.node-red

npm install node-red-contrib-openai

Wrapper openai API

Sample parameters

msg.api = 'completions';
msg.params = {
    "model": "text-davinci-003",
    "prompt": "Say this is a test",
    "max_tokens": 7,
    "temperature": 0
}
return msg;

Sample Flow

You can make this json string into a flow by using the node-red flow import function.

alt

alt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.8%
  • HTML 47.2%