Skip to content

Conversation

@ItsWendell
Copy link

Background

Thinking config supports includeThoughts and has been recently enabled experimentally in gemini 2.5 models.

https://cloud.google.com/vertex-ai/generative-ai/docs/reference/rest/v1/GenerationConfig#ThinkingConfig

Summary

Added includeThoughts to thinkingConfig in AI SDK v5

@ItsWendell ItsWendell marked this pull request as draft May 18, 2025 21:27
@ItsWendell ItsWendell force-pushed the feat/v5-include-thoughts branch from 10c5abe to c9afc42 Compare May 20, 2025 12:10
@ItsWendell ItsWendell changed the title feat(providers/google): feat(providers/google): add includeThoughts to thinkingConfig in AI SDK v5 feat(providers/google): add thoughts / includeThoughts to google provider, improve cachedContent workflow May 20, 2025
@ItsWendell ItsWendell force-pushed the feat/v5-include-thoughts branch from c9afc42 to ecefaed Compare May 20, 2025 12:25
@ItsWendell ItsWendell marked this pull request as ready for review May 20, 2025 12:27
@ItsWendell
Copy link
Author

ItsWendell commented May 20, 2025

Related: #6256

@ItsWendell ItsWendell changed the title feat(providers/google): add thoughts / includeThoughts to google provider, improve cachedContent workflow feat(providers/google): add thoughts / includeThoughts to google provider, improve cachedContent workflow [v5] May 20, 2025
github-actions bot and others added 3 commits June 6, 2025 19:25
-   98f25e5: chore (ui): remove managed chat inputs
-   7bb58d4: chore (ai): restructure prepareRequest

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/gateway@1.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   98f25e5: chore (ui): remove managed chat inputs

-   Updated dependencies [98f25e5]
-   Updated dependencies [7bb58d4]
    -   ai@5.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   98f25e5: chore (ui): remove managed chat inputs

-   Updated dependencies [98f25e5]
-   Updated dependencies [7bb58d4]
    -   ai@5.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   98f25e5: chore (ui): remove managed chat inputs
-   98f25e5: chore (ui/vue): replace useChat with new Chat

-   Updated dependencies [98f25e5]
-   Updated dependencies [7bb58d4]
    -   ai@5.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/openai@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/openai-compatible@1.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/openai-compatible@1.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/openai-compatible@1.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/openai-compatible@1.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

- 581a9be: fix (provider/google): prevent error when thinking signature
is used
-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

- bb13f18: Add reasoning token output support for gemini models via
Vertex AI Provider
-   Updated dependencies [581a9be]
-   Updated dependencies [c4df419]
    -   @ai-sdk/google@2.0.0-alpha.10
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/anthropic@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [98f25e5]
-   Updated dependencies [7bb58d4]
    -   ai@5.0.0-alpha.10

-   Updated dependencies [98f25e5]
-   Updated dependencies [7bb58d4]
    -   ai@5.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   c4df419: release alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [98f25e5]
-   Updated dependencies [7bb58d4]
-   Updated dependencies [c4df419]
    -   ai@5.0.0-alpha.10
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/openai-compatible@1.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/openai-compatible@1.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

-   Updated dependencies [c4df419]
    -   @ai-sdk/provider@2.0.0-alpha.10
    -   @ai-sdk/openai-compatible@1.0.0-alpha.10
    -   @ai-sdk/provider-utils@3.0.0-alpha.10

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@ItsWendell ItsWendell force-pushed the feat/v5-include-thoughts branch from ecefaed to 9fcdfb8 Compare June 6, 2025 17:26
@ItsWendell ItsWendell closed this Aug 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant