This commit is contained in:
Rodrigo Flávio 2026-09-13 00:03:51 -07:00 committed by GitHub
commit 16af6fda05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2203,6 +2203,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,