mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-02 01:20:23 +08:00
The installed 4.0.64 declared `input: z.unknown()` on BedrockToolUseSchema, which Zod v4 treats as non-optional. With the `fine-grained-tool-streaming-2025-05-14` beta enabled in lib/ai-providers.ts, Bedrock's contentBlockStart event arrives without an `input` field, causing type validation to fail with "expected nonoptional, received undefined". 4.0.101 fixed this upstream by marking input optional on the streaming tool-use schema. The semver range `^4.0.1` already permitted this; only the lockfile needed refreshing. Closes #859
1.0 MiB
1.0 MiB