The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs: add comment explaining why non-search tools are preserved
LeVDuan1e79ad69abde
diff --git a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.pyindex 4e8e6c7994c..d4d8124af40 100644--- a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py+++ b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py@@ -662,6 +662,9 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):googleSearchRetrieval = NoneenterpriseWebSearch = NoneurlContext = None+ # Note: code_execution, computerUse, and googleMaps are NOT search+ # tools and CAN coexist with function declarations in separate Tool+ # objects, so they are intentionally preserved here.# Function declarations can be grouped together in one Toolif gtool_func_declarations: