github vercel/ai ai@7.0.155

latest releases: @ai-sdk/xai@3.0.146, @ai-sdk/google-vertex@5.0.125, @ai-sdk/openai@2.0.138...
4 hours ago

Patch Changes

  • b6b9dca: chore(ai): remove runtime validation of inputs that TypeScript types already guarantee

    streamText, generateText, generateObject and streamObject no longer validate messages against the ModelMessage schema. This removes a cost that grew linearly with message history and was paid on every streamText step. Type checks on call settings, steering messages, tool caller configuration, smoothStream chunking, experimental_streamSpeech text input, the shape of decide state 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 in decide JSON 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

Don't miss a new ai release

NewReleases is sending notifications on new releases.