Skip to content

Incorrect stderr warning for includeThoughts parameter for google provider #9804

@danthegoodman1

Description

@danthegoodman1

Description

AI SDK Warning: The 'includeThoughts' option is only supported with the Google Vertex provider and might not be supported or could behave unexpectedly with the current Google provider (google.generative-ai).

This is not true. If you omit this, then the generateText.reasoning returns nothing. If you set it to includeThoughts: true, then you get reasoning.

AI SDK Version

"@ai-sdk/google": "^2.0.23",
"ai": "^5.0.78",

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