node-red-contrib-openai-wrapper
Version:
adds Node to call openai api via openai npm package
15 lines (13 loc) • 312 B
JavaScript
module.exports = function (RED) {
function openaiConfigNode(config) {
RED.nodes.createNode(this, config);
var node = this;
node.name = config.name;
}
RED.nodes.registerType("openai-api-config", openaiConfigNode,{
credentials: {
orgId: {type: 'password'},
apiKey: {type: 'password'},
}
});
}