@ai-sdk/openai
4.0.108 · 3 Nov 2026Apache-2.022M / weekRepositoryHomepagenpmAtom feed
Your version
3.0.136 is the newest release of 3.x.
In short
1 fixed
Release note
Patch Changes
openai: Include reasoning parts without itemId when encrypted_content is present
When
providerOptions.openai.itemIdis absent on a reasoning content part,
the converter now usesencrypted_contentas a fallback instead of silently
skipping the part with a warning. The OpenAI Responses API accepts reasoning
items without anidwhenencrypted_contentis supplied, enabling
multi-turn reasoning even when item IDs are stripped from provider options.Also makes the
idfield optional on theOpenAIResponsesReasoningtype to
reflect that the API does not require it.Fixes #12853