Skip to content

[Bug]: The Gemini's google_search tool parameters are ignored. #18171

@krisxia0506

Description

@krisxia0506

What happened?

When I make the following request body to the path /chat/completions

{
    "stream": false,
    "model": "gemini-3-pro-image-preview",
    "messages": [
        {
            "content": "Visualize the current weather forecast for the next 5 days in San Francisco as a clean, modern weather chart. Add a visual on what I should wear each day",
            "role": "user"
        }
    ],
     "tools": [{"google_search": {}}]
}

From the litellm log, it can be seen that google_search has been eliminated, leaving an empty tools object.

Image

Relevant log output

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

v1.80.10-nightly

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions