From b4ee6a23559537965eb99656891b02df78a13dda Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Tue, 5 May 2026 08:52:57 +0530 Subject: [PATCH] test(proxy): cover health_check_reasoning_effort for completion mode Co-authored-by: Cursor --- tests/test_litellm/proxy/test_health_check_max_tokens.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_litellm/proxy/test_health_check_max_tokens.py b/tests/test_litellm/proxy/test_health_check_max_tokens.py index 5292d2af061..72d77862b5d 100644 --- a/tests/test_litellm/proxy/test_health_check_max_tokens.py +++ b/tests/test_litellm/proxy/test_health_check_max_tokens.py @@ -240,6 +240,12 @@ def test_update_litellm_params_health_check_reasoning_effort(): ) assert out.get("reasoning_effort") == "none" + model_info = {"mode": "completion", "health_check_reasoning_effort": "low"} + out = _update_litellm_params_for_health_check( + model_info, {"model": "openai/gpt-5", "api_key": "x"} + ) + assert out.get("reasoning_effort") == "low" + model_info = { "health_check_reasoning_effort": {"effort": "none", "summary": "auto"}, }