litellm/tests/test_litellm/llms/vertex_ai
Sameer Kankute 5fb1f46183
fix(vertex_ai): omit function_call id on Vertex Gemini 3.5+ tool turns (#28324)
* fix(vertex_ai): omit function_call id on Vertex Gemini 3.5+ tool turns

Vertex AI rejects `id` on function_call/function_response parts; only Google AI Studio accepts it for Gemini 3.5+ strict tool matching.

Co-authored-by: Cursor <cursoragent@cursor.com>

* 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>

* fix(vertex_ai): forward custom_llm_provider in context caching

Pass custom_llm_provider through to _gemini_convert_messages_with_history
in the context caching path so Gemini 3.5+ tool-call `id` forwarding
behaves consistently between cached and non-cached completions on Google
AI Studio.

Co-authored-by: Claude <claude@anthropic.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <claude@anthropic.com>
(cherry picked from commit fecf212d70)
2026-05-20 18:49:17 -07:00
..
context_caching style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
files [Infra] Promote internal staging to main (#27245) 2026-05-05 16:15:03 -07:00
gemini fix(vertex_ai): omit function_call id on Vertex Gemini 3.5+ tool turns (#28324) 2026-05-20 18:49:17 -07:00
gemini_embeddings [Infra] Promote internal staging to main (#27245) 2026-05-05 16:15:03 -07:00
image_edit style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
image_generation Merge branch 'litellm_internal_staging' into litellm_vertex_request_metadata_labels 2026-04-21 09:10:51 +05:30
multimodal_embeddings Merge remote-tracking branch 'upstream/litellm_internal_staging' into litellm_staging_03_23_2026 2026-04-25 15:16:13 -03:00
realtime style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
rerank test(vertex_ai): add e2e tests for rerank userLabels propagation 2026-04-30 18:25:38 +00:00
vertex_ai_partner_models [Infra] Promote internal staging to main (#27245) 2026-05-05 16:15:03 -07:00
vertex_gemma_models style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
videos style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
__init__.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_bge_embedding.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_bge_response_transformation.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_gemini_empty_properties.py fix: keep type field in Gemini schema when properties is empty (#18979) 2026-01-14 22:58:05 +05:30
test_gemini_header_forwarding.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_http_status_201.py Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
test_vertex.py Day 0 support : Gemini 3.5 Flash (#28268) 2026-05-20 18:42:35 -07:00
test_vertex_ai_batch_transformation.py [Infra] Promote internal staging to main (#27245) 2026-05-05 16:15:03 -07:00
test_vertex_ai_common_utils.py [Infra] Promote internal staging to main (#27245) 2026-05-05 16:15:03 -07:00
test_vertex_ai_psc_endpoint_support.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_vertex_ai_search_vector_store_transformation.py [Infra] Promote internal staging to main (#27245) 2026-05-05 16:15:03 -07:00
test_vertex_global_url_support.py fix(vertex_ai): use aiplatform.{geo}.rep.googleapis.com for multi-region locations (#26281) 2026-04-23 15:58:02 -07:00
test_vertex_image_generation.py test: fix tests 2025-11-22 16:50:50 -08:00
test_vertex_llm_base.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_vertex_model_garden_openapi.py [Infra] Promote internal staging to main (#27245) 2026-05-05 16:15:03 -07:00