Update litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Sameer Kankute 2026-05-20 12:13:00 +05:30 • committed by GitHub
parent e2a54d1a9c
commit 1460905cc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,7 +296,7 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):
"""
Whether to include `id` on function_call / function_response parts.
Gemini 3.5+ on Google AI Studio accepts (and returns) `id` for strict
Gemini 3+ on Google AI Studio accepts (and returns) `id` for strict
tool-call matching. Vertex AI rejects the field with HTTP 400.
"""
if custom_llm_provider != "gemini":