Patch Changes
-
b6b9dca: chore(ai): remove runtime validation of inputs that TypeScript types already guarantee
streamText,generateText,generateObjectandstreamObjectno longer validate messages against theModelMessageschema. This removes a cost that grew linearly with message history and was paid on everystreamTextstep. Type checks on call settings, steering messages, tool caller configuration,smoothStreamchunking,experimental_streamSpeechtext input, the shape ofdecidestate and questions, and the batch reference version have also been removed. Value constraints that types cannot express, such as integer ranges, non-empty collections, unknown keys, and non-finite numbers or cycles indecideJSON input, are still validated. -
Updated dependencies [57086ff]
-
Updated dependencies [01d7a03]
-
Updated dependencies [95348b3]
- @ai-sdk/provider-utils@5.0.70
- @ai-sdk/gateway@4.0.128