Skip to content

chore(examples): remove obsolete useSearchGrounding in google examples#12494

Merged
felixarntz merged 1 commit intomainfrom
fa-remove-obsolete-use-search-grounding-examples
Feb 12, 2026
Merged

chore(examples): remove obsolete useSearchGrounding in google examples#12494
felixarntz merged 1 commit intomainfrom
fa-remove-obsolete-use-search-grounding-examples

Conversation

@felixarntz
Copy link
Collaborator

Background

useSearchGrounding is an obsolete provider option for the Google (and Vertex) providers that was deprecated a long time ago. v5 migration guides already include documentation how to migrate away from it, but several examples and e2e tests still referenced it.

Summary

Replaced all useSearchGrounding providerOption usages with the current googleSearch tool API.

The only remaining useSearchGrounding reference is in the v5 migration guide, which is correct since it documents historical behavior.

Manual Verification

N/A — example-only changes, verified via pnpm type-check:full and running the examples.

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Future Work

N/A

Related Issues

Fixes #12438

@vercel-ai-sdk vercel-ai-sdk bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label documentation Improvements or additions to documentation provider/community labels Feb 12, 2026
@felixarntz felixarntz merged commit 2d4355d into main Feb 12, 2026
31 checks passed
@felixarntz felixarntz deleted the fa-remove-obsolete-use-search-grounding-examples branch February 12, 2026 17:19
felixarntz added a commit that referenced this pull request Feb 19, 2026
## Background

The Gemini 1.5 model family and `gemini-2.0-flash-exp` (which was
Google's first multimodal image generation model) are no longer around.

## Summary

Updates all examples that use one of them to use an equivalent available
model.

## Related PRs

#12494
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label documentation Improvements or additions to documentation provider/community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove or replace obsolete Google examples with useSearchGrounding

2 participants