Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(proxy): cover health_check_reasoning_effort for completion mode

Sameer Kankuteb4ee6a235595
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"},
}