@ai-sdk/[email protected]
@ai-sdk/[email protected]
ai
Release Notes
Patch Changes
4d4e176: fix(openai-compatible): buffer tool call deltas until function.name arrives
bef93ae: fix(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.327642b: fix: more precise default message for tool execution denial
Updated dependencies [d559de9]
- @ai-sdk/[email protected]