Skip to content

Comments

docs: update Google Generative AI docs#7102

Merged
lgrammel merged 7 commits intovercel:mainfrom
patrickloeber:main
Jul 8, 2025
Merged

docs: update Google Generative AI docs#7102
lgrammel merged 7 commits intovercel:mainfrom
patrickloeber:main

Conversation

@patrickloeber
Copy link
Contributor

Hi, Patrick here from DeepMind. I wanted to update the Google Generative AI docs to use newer models and simplify some stuff. This PR includes the following changes:

  • Update some links
  • Add a simple generate text example
  • Use gemini-2.5-flash as default (same as on the Gemini API docs)
  • Clarify thinking budgets and document includeThoughts
  • Remove dynamic retrieval (this is only supported with the old 1.5 and considered as legacy)
  • Update model name in image generation snippet
  • Mention support for Streaming
  • Simplify Search example and merge with "Sources" section
  • Add info about implicit and explicit caching (this is copied over from the v4 docs and looks newer)
  • Copy Gemma section from v4 docs and move the section to the bottom
  • Remove info about tuned models as this is no longer actively supported in the Gemini API

@lgrammel
Copy link
Collaborator

lgrammel commented Jul 7, 2025

The docs on main are for v5. You seem to have reverted some AI SDK 5 code to AI SDK 4 in the examples (e.g. provider options). Can you check that this works with AI SDK 5?

@patrickloeber
Copy link
Contributor Author

@lgrammel thanks for taking a look, and good catch! The caching example used the v4 code, I uploaded a fix

Co-authored-by: Philipp Schmid <32632186+philschmid@users.noreply.github.com>
@lgrammel lgrammel changed the title Update Google Generative AI docs docs: update Google Generative AI docs Jul 7, 2025
@lgrammel
Copy link
Collaborator

lgrammel commented Jul 7, 2025

please fix the prettier issues

@lgrammel lgrammel merged commit 28b92a8 into vercel:main Jul 8, 2025
7 of 8 checks passed
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.

3 participants