Skip to content

Is Gemini 3.1 Pro and 3.1 Flash Lite supported with Search Grounding fully? #916

@andrewigk

Description

@andrewigk

I'm attempting to use 3.1 and while I am getting a response with text content when providing a prompt, and the response makes it pretty clear that the Gemini API is performing a web search. But when I try to access grounding metadata, it appears to be null/empty.

Is this to be expected? Is there some change that needs to occur in the java SDK before grounding metadata is returned correctly?

Thanks in advance.

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.status:awaiting user responsetype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions