Packages

@ai-sdk/google

4.0.122 · 17 Nov 2026Apache-2.014.6M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.43

24 Nov 2025Where it was published

2.0.111 is the newest release of 2.x.

In short

1 fixed

Release note

Patch Changes

  • Fixed Zod validation error when using google.tools.fileSearch(). The Google File Search API returns fileSearchStore instead of uri in retrievedContext. Updated extractSources() function to handle both the old format (Google Search with uri) and new format (File Search with fileSearchStore), maintaining backward compatibility while preventing validation errors. Also fixed title handling to use undefined for URL sources and 'Unknown Document' for document sources.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.