@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 fixed1 internal
Release note
Patch Changes
openai: Send assistant text with content instead of an item reference when its reasoning was removed
With reasoning models, pruning reasoning (e.g.
pruneMessages({ reasoning: 'all' })) caused follow-up requests to fail with "Item 'msg_...' of type 'message' was provided without its required 'reasoning' item". Assistant text parts are now only sent as item references, or with their item id, when they are preceded by reasoning in the same assistant message.