You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi , thank you for using ai sdk, I feel good DX developing generative AI application.
I use appendResponseMessages function because of convert ResponseMessage to Message.
When I tried upgrade ai version 4.1.5 to 4.1.25 , I met the error.
I tried serveral versions. [email protected] - @ai4.1.11 works expectedly.
But [email protected] - ai@latest(4.1.25) those message happens.
PR #4670 may depends about it.
it happens streamText onFinish happens error (not Linter error).
unhandledRejection: TypeError: Cannot read properties of undefined (reading 'role') at onFinish
@tsuzaki430 you need to provide the input messages to appendResponseMessages. We reconcile messages and it may be that the last message gets modified (no new message added).
Description
Hi , thank you for using ai sdk, I feel good DX developing generative AI application.
I use appendResponseMessages function because of convert ResponseMessage to Message.
When I tried upgrade ai version 4.1.5 to 4.1.25 , I met the error.
I tried serveral versions.
[email protected] - @ai4.1.11 works expectedly.
But [email protected] - ai@latest(4.1.25) those message happens.
PR #4670 may depends about it.
it happens streamText onFinish happens error (not Linter error).
The parameter messages is empty array because I need the response only.
I hope this issue will be useful.
Code example
No response
AI provider
@ai-sdk/azure 1.1.9
Additional context
No response
The text was updated successfully, but these errors were encountered: