ai-sdk-provider icon indicating copy to clipboard operation
ai-sdk-provider copied to clipboard

toUIMessageStream read Issues

Open ghardin1314 opened this issue 6 months ago • 0 comments

When using with anthropic/sonnet-claude-4 and the ai sdkv5 beta, I am getting an issue parsing the streamResult.toUIMessageStream when using the readUIMessageStream utility. Here is an example:

readUIMessageStream({
      stream: streamResult.toUIMessageStream({
        sendReasoning: true,
        sendSources: true,
      }),
      message: lastMessage,
    })

When I am doing this, the output of the assistant message only gives the step-start part and none of the following parts. This workflow was working fine with the first party anthropic provider, and it can also see the streamResult.fullStream contains all the right data as well

ghardin1314 avatar Jul 11 '25 17:07 ghardin1314