From f8c9009fe5f2fce8dc728253c83807bf115b3179 Mon Sep 17 00:00:00 2001 From: LingXuanYin <3546599908@qq.com> Date: Tue, 16 Sep 2025 12:11:10 +0800 Subject: [PATCH] add more test --- tests/test_litellm/llms/volcengine/test_volcengine.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_litellm/llms/volcengine/test_volcengine.py b/tests/test_litellm/llms/volcengine/test_volcengine.py index 056979f209c..f43167efa32 100644 --- a/tests/test_litellm/llms/volcengine/test_volcengine.py +++ b/tests/test_litellm/llms/volcengine/test_volcengine.py @@ -104,6 +104,15 @@ class TestVolcEngineConfig: ) assert result_no_thinking == {} + # Test 7: invalid thinking type - should NOT appear in extra_body (value is None) + result_no_thinking = config.map_openai_params( + non_default_params={"thinking": {"type": None}}, + optional_params={}, + model="doubao-seed-1.6", + drop_params=False, + ) + assert result_no_thinking == {} + def test_e2e_completion(self): from openai import OpenAI