Skip to content

v6: streamText onFinish callback no longer has object prop for structured data #11418

@pltoledo

Description

@pltoledo

Description

After I upgraded to v6, some of my code that relied on the onFinish callback of streamObject broke because the new alternative, streamText using Output, do not return an object prop as the previous iteration. This prop used to be the full parsed object after the stream had finished, and right now I don't understand what is the intended way for use to get the complete object at the end (to save on the DB, for example)

AI SDK Version

  • ai: 6.0.3
  • @ai-sdk/google: 3.0.1

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions