AI SDK fixes a bug where failing Valibot and other non-Zod schemas let bad tool input through (provider-utils 5.0.82 and 4.0.67, November 17, 2026)
Non-Zod Standard Schema results with issues could pass as valid, so rejected tool input was accepted. Update provider-utils.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. Your keys stay in this tab. They are never sent to Wirestack or saved; we only count that the panel was used.
- OpenAI API keyOPENAI_API_KEYGet key
Click Create new secret key
What changed
@ai-sdk/provider-utils 5.0.82 and 4.0.67 came out on November 17, 2026. They fix how the AI SDK reads results from non-Zod Standard Schema libraries.
Before the fix, a failing schema, such as a Valibot schema used through toStandardJsonSchema(), could be reported as valid. Rejected input, including tool input, was accepted.
Now a result that contains issues is always treated as a failure, even when it also carries a value.
Zod schemas were not affected. Only non-Zod Standard Schema results were.
5.0.82 is the version used by ai 7 (it ships with ai@7.0.174). 4.0.67 is the version used by ai 6 (it ships with ai@6.0.333).
Prerequisites
- A project that uses the AI SDK (
ai6 or 7) with tool or structured output schemas written in Valibot or another non-Zod Standard Schema library - Your model provider key, for example an OpenAI key in
OPENAI_API_KEY, to rerun your tests
Steps
- Update the AI SDK so it pulls the fixed provider-utils.
For AI SDK 7:
npm install ai@latest @ai-sdk/provider-utils@5.0.82For AI SDK 6:
npm install ai@ai-v6 @ai-sdk/provider-utils@4.0.67Affected by this? Start from a checked Vercel AI SDK integration
Code with pinned versions, checked against the official docs on a schedule.
