github vercel/ai @ai-sdk/react@3.0.24

latest releases: @ai-sdk/xai@2.0.50, @ai-sdk/xai@2.0.49, @ai-sdk/vue@2.0.119...
one day ago

Patch Changes

  • 000a0a6: Fix: ensure useChat uses the latest onToolCall (and other callbacks) to avoid stale closures.

    Changes:

    • Update useChat to use intermediary proxy callbacks that forward to refs, ensuring the latest callbacks are always used without recreating the chat instance.
    • Add a regression test verifying the latest onToolCall is invoked after a prop change.

    Related to: #8148

Don't miss a new ai release

NewReleases is sending notifications on new releases.