From 91b1be133c4fce3f3fda2ac366866c33de0b8365 Mon Sep 17 00:00:00 2001 From: gegemeimingzi <200456873+gegemeimingzi@users.noreply.github.com> Date: Wed, 19 Aug 2026 23:02:48 +0800 Subject: [PATCH] test(vertex): cover gemini-3.7-flash in thinking-param mapping --- tests/llm_translation/test_gemini.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/llm_translation/test_gemini.py b/tests/llm_translation/test_gemini.py index d3eb455dafb..298db3e3cdb 100644 --- a/tests/llm_translation/test_gemini.py +++ b/tests/llm_translation/test_gemini.py @@ -1649,6 +1649,15 @@ def test_anthropic_thinking_param_to_gemini_3_force_low_feature_flag(): ) assert result_pro["thinkingLevel"] == "low" assert result_pro["includeThoughts"] is True + + # gemini-3.7-flash dropped MINIMAL support, so the forced-low mapping must + # not send "minimal" to it (issue #37314). + result_37 = VertexGeminiConfig._map_thinking_param( + thinking_param=thinking_param, + model="gemini-3.7-flash", + ) + assert result_37["thinkingLevel"] == "low" + assert result_37["includeThoughts"] is True finally: litellm.enable_gemini_default_thinking_level_low = original_force_low_flag