@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
3 fixed1 internal
Release note
Patch Changes
security: Prevent streaming tool calls from finalizing on parsable partial JSON
Streaming tool call arguments were finalized using
isParsableJson()as a heuristic for completion. If partial accumulated JSON happened to be valid JSON before all chunks arrived, the tool call would be executed with incomplete arguments. Tool call finalization now only occurs inflush()after the stream is fully consumed.More precise default message for tool execution denial
openai: Throw retryable errors for OpenAI stream failures before output starts