Skip to content

Commit 8f251cf

Browse files
committed
Upgraded to OpenAI API SDK v4.89.0
1 parent 7d964b2 commit 8f251cf

File tree

3 files changed

+33
-38
lines changed

3 files changed

+33
-38
lines changed

README.md

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -40,34 +40,13 @@ After installation, find your node in the **AI** palette category labeled "OpenA
4040
- **Configurable and Flexible**: Adapt to a wide range of project requirements, making it easy to integrate AI into your IoT solutions.
4141
- **Powerful Combinations**: Utilize Node-RED's diverse nodes to build complex, AI-driven IoT workflows with ease.
4242

43-
## Release Notes (v1.87.3)
44-
45-
- **Ehancement:** Upgraded the OpenAI API Library dependency from [v4.85.4](https://github.com/openai/openai-node/releases/tag/v4.85.4) to [v4.87.3](https://github.com/openai/openai-node/releases/tag/v4.87.3).
46-
- **Features:** Implemented [Responses](https://platform.openai.com/docs/api-reference/responses) API capabilities.
47-
- OpenAI's most advanced interface for generating model responses.
48-
- Create stateful interactions with the model, using the output of previous responses as input and more.
49-
- 🔥 Native agentic web search capabilities:
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
7150

7251
## What's New in Version 1.x
7352

node.html

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -949,25 +949,27 @@ <h4 style="font-weight: bolder;"> ⋙ Create Speech</h4>
949949
<h4>msg.payload Properties</h4>
950950

951951
<dt>
952-
model
952+
input
953953
<a
954-
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-model"
954+
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-input"
955955
target="_blank"
956956
><i class="fa fa-external-link fa-sm" aria-hidden="true"></i
957957
></a>
958958
<span class="property-type">string</span>
959959
</dt>
960-
<dd>One of the available TTS models: tts-1 or tts-1-hd</dd>
960+
<dd>The text to generate audio for.</dd>
961+
961962
<dt>
962-
input
963+
model
963964
<a
964-
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-input"
965+
href="https://platform.openai.com/docs/api-reference/audio/createSpeech#audio-createspeech-model"
965966
target="_blank"
966967
><i class="fa fa-external-link fa-sm" aria-hidden="true"></i
967968
></a>
968969
<span class="property-type">string</span>
969970
</dt>
970-
<dd>The text to generate audio for.</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+
971973
<dt>
972974
voice
973975
<a
@@ -978,9 +980,22 @@ <h4>msg.payload Properties</h4>
978980
<span class="property-type">string</span>
979981
</dt>
980982
<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>.
983984
</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+
984999
<dt class="optional">
9851000
response_format
9861001
<a
@@ -993,6 +1008,7 @@ <h4>msg.payload Properties</h4>
9931008
<dd>
9941009
The format to audio in. Supported formats are mp3, opus, aac, flac, wav, and pcm.
9951010
</dd>
1011+
9961012
<dt class="optional">
9971013
speed
9981014
<a

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@inductiv/node-red-openai-api",
3-
"version": "1.87.3",
3+
"version": "1.89.0",
44
"description": "Enhance your Node-RED projects with advanced AI capabilities.",
55
"main": "node.js",
66
"engines": {
@@ -30,7 +30,7 @@
3030
"low-code"
3131
],
3232
"dependencies": {
33-
"openai": "~4.87.3"
33+
"openai": "~4.89.0"
3434
},
3535
"author": "Allan Bunch",
3636
"license": "MIT",

0 commit comments

Comments
 (0)