AI SDK 7.0.160

7.0.160
Added 1
  • Add steering.queue() to send a message once the current task is done
Fixed 2

1 change to check, marked in the notes below

From AI SDK

Patch Changes
  • a71172d: fix(ai): clarify inverted smoothStream prefix error message

  • cf27969: add steering.queue() to send a message once the current task is done

  • 17b6923: fix(ai): validate streamed data parts against dataPartSchemas

    processUIMessageStream looked up dataPartSchemas by the full chunk type (data-weather) instead of the bare part name (weather), so useChat / Chat never validated streamed data parts. Invalid data parts now raise a TypeValidationError. behavior changed · inferred

  • Updated dependencies [2099d45]

  • Updated dependencies [d05ff62]

    • @ai-sdk/gateway@4.0.133
View original

Upgraded? How did it go?

Discussion