OpenAI Node v7.43.0
This release expands Live Decisions API types: `instructions` can now be a string or an array of text, image, or JSON parts, and Decisions inputs support additional message roles and tool-history items. These type changes can break code that assumes instructions are always strings or that Decisions inputs have a fixed shape; the release also includes dependency updates in ecosystem tests.
Applications using Live Decisions instructions or typing Decisions inputs may need updates; existing string instructions and user-message inputs continue to work.
Review Live Decisions code for string-only instruction handling and assumptions about input types, then update it for the new union types.
- 01Check `typeof question.instructions === 'string'` before applying string operations, and handle the array case.
- 02Update code extending or implementing the former `DecisionInputMessage` interface to use `DecisionInputMessage.DecisionInputUserMessage`.
if (typeof question.instructions === 'string') {
question.instructions.trim();
} else {
// Handle the array of text, image, or JSON parts.
}# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.