From 2526992518240615e5f8a04b9fb71f009866a60c Mon Sep 17 00:00:00 2001 From: Rodrigoue9 Date: Tue, 18 Aug 2026 22:52:41 -0300 Subject: [PATCH] fix(health_endpoints): log full error details in test_model_connection (#37401) --- litellm/proxy/health_endpoints/_health_endpoints.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/litellm/proxy/health_endpoints/_health_endpoints.py b/litellm/proxy/health_endpoints/_health_endpoints.py index e814ec42d26..84bdbbcfe5b 100644 --- a/litellm/proxy/health_endpoints/_health_endpoints.py +++ b/litellm/proxy/health_endpoints/_health_endpoints.py @@ -1975,6 +1975,13 @@ async def test_model_connection( # Clean the result for display cleaned_result: Final = _clean_endpoint_data({**litellm_params, **result}, details=True) + if "error" in result: + verbose_proxy_logger.error( + "test_model_connection failure for model '%s': %s", + litellm_params.get("model", "unknown"), + result["error"], + ) + return { "status": "error" if "error" in result else "success", "result": cleaned_result,