mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
fix(test): use valid AnthropicThinkingParam type in thinking param test
'disabled' is not a valid Literal value for AnthropicThinkingParam.type. Use 'adaptive' to correctly reflect the type contract.
This commit is contained in:
parent
b4a0e0fd7d
commit
3d327d6883
1 changed files with 2 additions and 2 deletions
|
|
@ -938,12 +938,12 @@ def test_vertex_ai_map_thinking_param_with_budget_tokens_0():
|
|||
|
||||
def test_vertex_ai_map_thinking_param_disabled():
|
||||
"""
|
||||
type="disabled" must produce includeThoughts: False with no thinkingBudget field.
|
||||
type="adaptive" (non-enabled) must produce includeThoughts: False with no thinkingBudget field.
|
||||
"""
|
||||
from litellm.types.llms.anthropic import AnthropicThinkingParam
|
||||
|
||||
v = VertexGeminiConfig()
|
||||
thinking_param: AnthropicThinkingParam = {"type": "disabled"}
|
||||
thinking_param: AnthropicThinkingParam = {"type": "adaptive"}
|
||||
result = v._map_thinking_param(thinking_param=thinking_param)
|
||||
assert result == {"includeThoughts": False}
|
||||
assert "thinkingBudget" not in result
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue