Skip to content

Commit f8c9009

Browse files
committed
add more test
1 parent df5db48 commit f8c9009

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
@@ -104,6 +104,15 @@ def test_thinking_parameter_handling(self):
104104
)
105105
assert result_no_thinking == {}
106106

107+
# Test 7: invalid thinking type - should NOT appear in extra_body (value is None)
108+
result_no_thinking = config.map_openai_params(
109+
non_default_params={"thinking": {"type": None}},
110+
optional_params={},
111+
model="doubao-seed-1.6",
112+
drop_params=False,
113+
)
114+
assert result_no_thinking == {}
115+
107116
def test_e2e_completion(self):
108117
from openai import OpenAI
109118

0 commit comments

Comments
 (0)