@inductiv/node-red-openai-api 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.js CHANGED
@@ -15,6 +15,7 @@ module.exports = function (RED) {
15
15
  let client = new lib.OpenaiApi();
16
16
  if (!errorFlag && this.service) {
17
17
  client.setApiBase(this.service.apiBase);
18
+ client.setOrganizationIdHeader(this.service.organizationId);
18
19
  }
19
20
 
20
21
  if (!errorFlag && this.service && this.service.credentials && this.service.credentials.secureApiKeyValue) {
@@ -99,6 +100,7 @@ module.exports = function (RED) {
99
100
  this.apiBase = n.apiBase;
100
101
  this.secureApiKeyHeaderOrQueryName = n.secureApiKeyHeaderOrQueryName;
101
102
  this.secureApiKeyIsQuery = n.secureApiKeyIsQuery;
103
+ this.organizationId = n.organizationId;
102
104
  }
103
105
  }
104
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inductiv/node-red-openai-api",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Go beyond ChatGPT and DALL·E 3: this Node-RED node seamlessly integrates a range of OpenAI services, including Assistants, Threads, Vision, and Audio, enabling feature-rich enhancement of your AI workflows with any OpenAI REST API-compatible solution.",
5
5
  "main": "node.js",
6
6
  "engines": {