test(vertex): cover gemini-3.7-flash in thinking-param mapping

This commit is contained in:
gegemeimingzi 2026-08-19 23:02:48 +08:00
parent 398ed330f1
commit 91b1be133c

View file

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