mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
test(vertex): cover gemini-3.7-flash in thinking-param mapping
This commit is contained in:
parent
398ed330f1
commit
91b1be133c
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue