Skip to content

Commit 3bbe09c

Browse files
committed
update test volcengine
1 parent bf7868b commit 3bbe09c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_litellm/llms/volcengine/test_volcengine.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ def test_thinking_parameter_handling(self):
9595
)
9696
assert result_no_thinking == {}
9797

98+
# Test 6: invalid thinking type - should NOT appear in extra_body (invalid type)
99+
result_no_thinking = config.map_openai_params(
100+
non_default_params={"thinking": {"type": "invalid_type"}},
101+
optional_params={},
102+
model="doubao-seed-1.6",
103+
drop_params=False,
104+
)
105+
assert result_no_thinking == {}
106+
98107
def test_e2e_completion(self):
99108
from openai import OpenAI
100109

0 commit comments

Comments
 (0)