Skip to content

fix(google): add gemini 3 support for file search tool#11163

Merged
aayush-kapoor merged 2 commits intovercel:mainfrom
shubham-021:fix/google-file-search-gemini-3-support
Jan 6, 2026
Merged

fix(google): add gemini 3 support for file search tool#11163
aayush-kapoor merged 2 commits intovercel:mainfrom
shubham-021:fix/google-file-search-gemini-3-support

Conversation

@shubham-021
Copy link
Contributor

@shubham-021 shubham-021 commented Dec 14, 2025

Background

The gemini api file search tool currently doesn't support gemini-3-pro-preview , even though Google's official documentation lists it as a supported model for File Search.

Summary

  • updated supportsFileSearch check in google-prepare-tools.ts to include gemini 3 models
  • updated the error message to reflect the new supported models
  • added a test case for file search with gemini-3 models

Manual Verification

  • Added tests

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)

Fixes : #11161

@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 Dec 14, 2025
@georgezhai123
Copy link

georgezhai123 commented Dec 21, 2025

@R-Taneja , @lgrammel , can the team merge this fix please? Thanks!

@lgrammel
Copy link
Collaborator

cc @gr2m

@georgezhai123
Copy link

@gr2m
Can you merge this fix please? Thanks!

@georgezhai123
Copy link

@lgrammel This fix still hasn't got merged. This is critical for our system to have Gemini 3 supported for file search tool. Can we escalate and merge this fix ? Thank you!

@peka2
Copy link

peka2 commented Jan 6, 2026

I’m seeing the same error, so I’d appreciate it if you could merge this fix.

@aayush-kapoor aayush-kapoor merged commit 3be4d81 into vercel:main Jan 6, 2026
17 of 18 checks passed
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.

Support of Gemini API File Search Tool For Gemini 3.0 Pro

5 participants