From 5a0aba9fb7ac00e6bda96893e862240e32d395dd Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Tue, 3 Mar 2026 19:40:28 -0300 Subject: [PATCH] fix: update vertex AI tests to expect role=user on function_response messages The Gemini API requires role="user" on function_response content blocks (added in commit 273cf12afa), but these tests were never updated to match. Co-Authored-By: Claude Opus 4.6 --- tests/test_litellm/llms/vertex_ai/test_vertex.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_litellm/llms/vertex_ai/test_vertex.py b/tests/test_litellm/llms/vertex_ai/test_vertex.py index 803584b5615..bd12100a88f 100644 --- a/tests/test_litellm/llms/vertex_ai/test_vertex.py +++ b/tests/test_litellm/llms/vertex_ai/test_vertex.py @@ -393,6 +393,7 @@ def test_multiple_function_call(): ], }, { + "role": "user", "parts": [ { "function_response": { @@ -498,6 +499,7 @@ def test_multiple_function_call_changed_text_pos(): ], }, { + "role": "user", "parts": [ { "function_response": {