# vercel-ai-sdk/release
Vercel AI SDK ai@5.0.290
importance: mediummigrationsecurity
This patch release makes failed tool-call error text consistent with the model’s message history by default and improves validation of malformed UI messages. The validation changes stop after the first invalid message or part and reduce unnecessary schema checks and issue reporting, mitigating excessive memory and CPU usage.
affected
Applications using `validateUIMessages` or `safeValidateUIMessages`, and applications handling failed tool calls, are affected by the validation and error-text behavior changes.
release_signals
!Mitigates excessive memory and CPU usage when validating malformed UI messages by limiting schema checks and stopping validation at the first invalid message or part.
migration_steps1 steps
- 01Set `redactToolErrors: true` to replace failed tool-call error text with the result of `onError`. This option is not enabled by default.
# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.