@inductiv/node-red-openai-api 1.7.1 → 1.8.0
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/README.md +2 -2
- package/node.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,9 +40,9 @@ After installation, find your node in the **AI** palette category labeled "OpenA
|
|
|
40
40
|
- **Configurable and Flexible**: Adapt to a wide range of project requirements, making it easy to integrate AI into your IoT solutions.
|
|
41
41
|
- **Powerful Combinations**: Utilize Node-RED's diverse nodes to build complex, AI-driven IoT workflows with ease.
|
|
42
42
|
|
|
43
|
-
## Release Notes (v1.
|
|
43
|
+
## Release Notes (v1.8.0)
|
|
44
44
|
|
|
45
|
-
- **
|
|
45
|
+
- **Ehancement**: Upgraded to the OpenAI API Library from [v4.77.0](https://github.com/openai/openai-node/releases/tag/v4.77.0) to [v4.8.2](https://github.com/openai/openai-node/releases/tag/v4.83.0).
|
|
46
46
|
|
|
47
47
|
## What's New in Version 1.x
|
|
48
48
|
|
package/node.js
CHANGED
|
@@ -18,7 +18,7 @@ module.exports = function (RED) {
|
|
|
18
18
|
let client = new lib.OpenaiApi(
|
|
19
19
|
clientApiKey,
|
|
20
20
|
clientApiBase,
|
|
21
|
-
clientOrganization
|
|
21
|
+
clientOrganization
|
|
22
22
|
);
|
|
23
23
|
let payload;
|
|
24
24
|
|
|
@@ -64,7 +64,7 @@ module.exports = function (RED) {
|
|
|
64
64
|
text: "node-red:common.status.error",
|
|
65
65
|
});
|
|
66
66
|
let errorMessage = error.message;
|
|
67
|
-
node.error(errorMessage,
|
|
67
|
+
node.error(errorMessage, msg);
|
|
68
68
|
});
|
|
69
69
|
} else {
|
|
70
70
|
console.error(`Function ${serviceName} does not exist on client.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inductiv/node-red-openai-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Enhance your Node-RED projects with advanced AI capabilities.",
|
|
5
5
|
"main": "node.js",
|
|
6
6
|
"engines": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"low-code"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"openai": "~4.
|
|
33
|
+
"openai": "~4.83.0"
|
|
34
34
|
},
|
|
35
35
|
"author": "Allan Bunch",
|
|
36
36
|
"license": "MIT",
|