Skip to content

Incomplete error information #422

@egorprnn

Description

@egorprnn

doStream

When an error occurs from the API, the AI SDK streamText returns APICallError [AI_APICallError]: Provider returned error:

Image

The real cause of the error can only be understood by going into the library’s source code and adding a console log in the appropriate place, seems like for that error initialization should be used message value from raw field:

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions