@inductiv/node-red-openai-api 1.87.3 → 1.89.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 +7 -28
- package/node.html +24 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,34 +40,13 @@ 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.
|
|
44
|
-
|
|
45
|
-
- **
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
```javascript
|
|
52
|
-
msg.payload = {
|
|
53
|
-
"model": "gpt-4o-mini",
|
|
54
|
-
"tools": [{ type: "web_search_preview" }],
|
|
55
|
-
"input": "What was a positive news story from today?"
|
|
56
|
-
}
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
- 🔥 Native agentic computer use capabilities.
|
|
60
|
-
- 🔥 Reasoning model control properties:
|
|
61
|
-
|
|
62
|
-
```javascript
|
|
63
|
-
msg.payload = {
|
|
64
|
-
"model": "o3-mini",
|
|
65
|
-
"input": "How much wood would a woodchuck chuck?",
|
|
66
|
-
"reasoning": {
|
|
67
|
-
"effort": "high"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
```
|
|
43
|
+
## Release Notes (v1.89.0)
|
|
44
|
+
|
|
45
|
+
- **Ehancements:**
|
|
46
|
+
- Upgraded the OpenAI API Library dependency from [v4.87.3](https://github.com/openai/openai-node/releases/tag/v4.87.3) to [v4.89.0](https://github.com/openai/openai-node/releases/tag/v4.89.0)
|
|
47
|
+
- **Features:**
|
|
48
|
+
- New audio helpers
|
|
49
|
+
- New API models for TTS, STT, + new audio features for Realtime
|
|
71
50
|
|
|
72
51
|
## What's New in Version 1.x
|
|
73
52
|
|
package/node.html
CHANGED
|
@@ -949,25 +949,27 @@
|
|
|
949
949
|
<h4>msg.payload Properties</h4>
|
|
950
950
|
|
|
951
951
|
<dt>
|
|
952
|
-
|
|
952
|
+
input
|
|
953
953
|
<a
|
|
954
|
-
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-
|
|
954
|
+
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-input"
|
|
955
955
|
target="_blank"
|
|
956
956
|
><i class="fa fa-external-link fa-sm" aria-hidden="true"></i
|
|
957
957
|
></a>
|
|
958
958
|
<span class="property-type">string</span>
|
|
959
959
|
</dt>
|
|
960
|
-
<dd>
|
|
960
|
+
<dd>The text to generate audio for.</dd>
|
|
961
|
+
|
|
961
962
|
<dt>
|
|
962
|
-
|
|
963
|
+
model
|
|
963
964
|
<a
|
|
964
|
-
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-
|
|
965
|
+
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-model"
|
|
965
966
|
target="_blank"
|
|
966
967
|
><i class="fa fa-external-link fa-sm" aria-hidden="true"></i
|
|
967
968
|
></a>
|
|
968
969
|
<span class="property-type">string</span>
|
|
969
970
|
</dt>
|
|
970
|
-
<dd>
|
|
971
|
+
<dd>One of the available TTS models: <code>tts-1</code>, <code>tts-1-hd</code> or <code>gpt-4o-mini-tts</code>.</dd>
|
|
972
|
+
|
|
971
973
|
<dt>
|
|
972
974
|
voice
|
|
973
975
|
<a
|
|
@@ -978,9 +980,22 @@
|
|
|
978
980
|
<span class="property-type">string</span>
|
|
979
981
|
</dt>
|
|
980
982
|
<dd>
|
|
981
|
-
The voice to use when generating the audio. Supported voices are alloy
|
|
982
|
-
echo, fable, onyx, nova, and shimmer.
|
|
983
|
+
The voice to use when generating the audio. Supported voices are <code>alloy</code>, <code>ash</code>, <code>coral</code>, <code>echo</code>, <code>fable</code>, <code>onyx</code>, <code>nova</code>, <code>sage</code> and <code>shimmer</code>.
|
|
983
984
|
</dd>
|
|
985
|
+
|
|
986
|
+
<dt class="optional">
|
|
987
|
+
instructions
|
|
988
|
+
<a
|
|
989
|
+
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-instructions"
|
|
990
|
+
target="_blank"
|
|
991
|
+
><i class="fa fa-external-link fa-sm" aria-hidden="true"></i
|
|
992
|
+
></a>
|
|
993
|
+
<span class="property-type">string</span>
|
|
994
|
+
</dt>
|
|
995
|
+
<dd>
|
|
996
|
+
Control the voice of your generated audio with additional instructions. Does not work with <code>tts-1</code> or <code>tts-1-hd</code>.
|
|
997
|
+
</dd>
|
|
998
|
+
|
|
984
999
|
<dt class="optional">
|
|
985
1000
|
response_format
|
|
986
1001
|
<a
|
|
@@ -993,6 +1008,7 @@
|
|
|
993
1008
|
<dd>
|
|
994
1009
|
The format to audio in. Supported formats are mp3, opus, aac, flac, wav, and pcm.
|
|
995
1010
|
</dd>
|
|
1011
|
+
|
|
996
1012
|
<dt class="optional">
|
|
997
1013
|
speed
|
|
998
1014
|
<a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inductiv/node-red-openai-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.89.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.89.0"
|
|
34
34
|
},
|
|
35
35
|
"author": "Allan Bunch",
|
|
36
36
|
"license": "MIT",
|