initial version
This commit is contained in:
parent
529afd4eaa
commit
edb5499caf
3 changed files with 65 additions and 0 deletions
12
openai-config.js
Normal file
12
openai-config.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
module.exports = function(RED) {
|
||||
function OpenAIConfigNode(config) {
|
||||
RED.nodes.createNode(this, config);
|
||||
this.apiUrl = config.apiUrl;
|
||||
this.apiToken = config.apiToken;
|
||||
}
|
||||
RED.nodes.registerType("openai-config", OpenAIConfigNode, {
|
||||
credentials: {
|
||||
apiToken: { type: "password" }
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue