@inductiv/node-red-openai-api 1.3.0 → 1.5.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.
Files changed (3) hide show
  1. package/README.md +4 -7
  2. package/node.html +12 -0
  3. package/package.json +7 -11
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # @inductiv/node-red-openai-api
3
2
 
4
3
  ![NPM Version](https://img.shields.io/npm/v/%40inductiv%2Fnode-red-openai-api) ![GitHub Release Date](https://img.shields.io/github/release-date/allanbunch/node-red-openai-api) ![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/allanbunch/node-red-openai-api) ![GitHub Repo stars](https://img.shields.io/github/stars/allanbunch/node-red-openai-api)
@@ -41,12 +40,10 @@ After installation, find your node in the **AI** palette category labeled "OpenA
41
40
  - **Configurable and Flexible**: Adapt to a wide range of project requirements, making it easy to integrate AI into your IoT solutions.
42
41
  - **Powerful Combinations**: Utilize Node-RED's diverse nodes to build complex, AI-driven IoT workflows with ease.
43
42
 
44
- ## Release Notes (v1.3.0)
43
+ ## Release Notes (v1.5.0)
45
44
 
46
- - Streamed responses now share the same `msg._msgid` value
47
- - Upgraded to OpenAI Node API Library v4.42.0
48
- - Updated the node's documentation panel
49
- - Code stability & formatting updates
45
+ - Upgraded to OpenAI Node API Library package dependency v4.68.0
46
+ - Supporting OpenAI's new [chat completion audio generation](https://platform.openai.com/docs/guides/audio) functionality with **gpt-4o-audio-preview** model capabilities
50
47
 
51
48
  ## What's New in Version 1.x
52
49
 
@@ -65,7 +62,7 @@ Version 1.0 of the **node-red-openai-api** node brings significant enhancements
65
62
  - Some functions and settings from previous versions may no longer be compatible with this update.
66
63
  - List responses now exist at the top level of the `msg.payload` object; previously `msg.payload.data`.
67
64
 
68
- I recommend reviewing current setups and testing them with this new version in a development environment before updating to ensure a smooth transition. This will help you take full advantage of the enhanced features while managing any necessary adjustments in your existing applications.
65
+ I recommend reviewing existing flows and testing them with this new version in a development environment before updating to ensure a smooth transition. This will help you take full advantage of the enhanced features while managing any necessary adjustments in your existing applications.
69
66
 
70
67
  ## Contribute
71
68
 
package/node.html CHANGED
@@ -1387,6 +1387,18 @@
1387
1387
  <span class="property-type">boolean</span>
1388
1388
  </dt>
1389
1389
  <dd>If set, partial message deltas will be sent, like in ChatGPT.</dd>
1390
+
1391
+ <dt class="optional">
1392
+ stream_options
1393
+ <a
1394
+ href="https://platform.openai.com/docs/api-reference/chat/create#chat-create-stream_options"
1395
+ target="_blank"
1396
+ ><i class="fa fa-external-link fa-sm" aria-hidden="true"></i
1397
+ ></a>
1398
+ <span class="property-type">object</span>
1399
+ </dt>
1400
+ <dd>Options for streaming response. Only set this when you set ```stream: true```.</dd>
1401
+
1390
1402
  <dt class="optional">
1391
1403
  temperature
1392
1404
  <a
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inductiv/node-red-openai-api",
3
- "version": "1.3.0",
4
- "description": "Enhance your Node-RED flows with advanced AI capabilities.",
3
+ "version": "1.5.0",
4
+ "description": "Enhance your Node-RED projects with advanced AI capabilities.",
5
5
  "main": "node.js",
6
6
  "engines": {
7
7
  "node": ">=12.0.0"
@@ -16,30 +16,26 @@
16
16
  "node-red",
17
17
  "aiot",
18
18
  "openai",
19
+ "gpt-4o-audio-preview",
19
20
  "ai",
20
21
  "openai api",
21
- "assistants v2",
22
- "batch requests",
23
- "vector store",
24
22
  "iot",
25
23
  "node-red-contrib",
26
24
  "automation",
27
25
  "smart devices",
28
- "node-red-node",
26
+ "node-red node",
29
27
  "artificial intelligence",
30
28
  "api integration",
31
- "llm",
32
- "slm",
33
29
  "ai agent",
34
30
  "low-code"
35
31
  ],
36
32
  "dependencies": {
37
- "openai": "~4.42.0"
33
+ "openai": "~4.68.0"
38
34
  },
39
35
  "devDependencies": {
40
- "eslint": "^8.54.0",
36
+ "eslint": "^9.2.0",
41
37
  "eslint-plugin-jest": "^28.5.0",
42
- "prettier": "^3.1.0"
38
+ "prettier": "^3.2.5"
43
39
  },
44
40
  "author": "Allan Bunch",
45
41
  "license": "MIT",