8 views
-/https://github.com/berriai/litellm/issues/26882
GitHub · issue

#26882 [Bug]: Vertex AI - "Multiple tools are supported only when they are all search tools" when request has both web_search_options and function tools

  • State: open
  • Author: @meenalgupta2306
  • Labels: bug, proxy, llm translation, stale

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

When using the LiteLLM proxy with Vertex AI (Gemini), sending a request from codex cli that includes both function calling tools and web_search_options causes a 400 error: "Multiple tools are supported only when they are all search tools"

Root cause: LiteLLM converts the web_search Responses API tool into web_search_options before the Vertex AI mapper runs. The tools parameter (function declarations) and web_search_options are then mapped independently. _resolve_search_tool_conflict only runs inside _map_function and never sees the googleSearch Tool added by _map_web_search_options, so the conflict is never caught

### Steps to Reproduce

1. Send a chat completion request to a Vertex AI Gemini model with both: - tools: [{ type: "function", function: { name: "my_func", ... } }] - web_search_options: {} …

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 · 31d18h59m18s ago — entered · #import:https:::github.com:berriai:litellm post #2088
#31296 requires cross-cutting proxy authentication, standards-compliant discovery behavior, configuration handling, security review, and integration tests, whereas #26882 is a narrower provider-specific translation fix.
#0 of 0 · 31d18h58m49s ago — current · #import:https:::github.com:berriai:litellm post #2096
Issue 26882 is harder because it spans request translation, provider-specific tool mapping, conflict resolution, and compatibility testing across multiple tool types. Issue 24065 appears more localized to Cloudflare provider response handling and model-specific API compatibility.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search