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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix lint errors (#15406)
Sameer Kankutea2123f759601
diff --git a/docs/my-website/docs/proxy/config_settings.md b/docs/my-website/docs/proxy/config_settings.mdindex 5135f708e01..e99bfe15255 100644--- a/docs/my-website/docs/proxy/config_settings.md+++ b/docs/my-website/docs/proxy/config_settings.md@@ -782,4 +782,6 @@ router_settings:| WEBHOOK_URL | URL for receiving webhooks from external services| SPEND_LOG_RUN_LOOPS | Constant for setting how many runs of 1000 batch deletes should spend_log_cleanup task run || SPEND_LOG_CLEANUP_BATCH_SIZE | Number of logs deleted per batch during cleanup. Default is 1000 |-| COROUTINE_CHECKER_MAX_SIZE_IN_MEMORY | Maximum size for CoroutineChecker in-memory cache. Default is 1000 |\ No newline at end of file+| COROUTINE_CHECKER_MAX_SIZE_IN_MEMORY | Maximum size for CoroutineChecker in-memory cache. Default is 1000 |+| DEFAULT_SHARED_HEALTH_CHECK_TTL | Time-to-live in seconds for cached health check results in shared health check mode. Default is 300 (5 minutes) |+| DEFAULT_SHARED_HEALTH_CHECK_LOCK_TTL | Time-to-live in seconds for health check lock in shared health check mode. Default is 60 (1 minute) |\ No newline at end of filediff --git a/litellm/proxy/health_check_utils/shared_health_check_manager.py b/litellm/proxy/health_check_utils/shared_health_check_manager.pyindex 98e0edb68b8..cfd03a4d178 100644--- a/litellm/proxy/health_check_utils/shared_health_check_manager.py+++ b/litellm/proxy/health_check_utils/shared_health_check_manager.py@@ -1,12 +1,11 @@import asyncioimport jsonimport time-from typing import Any, Dict, List, Optional, Tuple, Union+from typing import Any, Dict, List, Optional, Tuplefrom litellm._logging import verbose_proxy_loggerfrom litellm.caching.redis_cache import RedisCachefrom litellm.constants import (- DEFAULT_HEALTH_CHECK_INTERVAL,DEFAULT_SHARED_HEALTH_CHECK_TTL,DEFAULT_SHARED_HEALTH_CHECK_LOCK_TTL,)diff --git a/litellm/proxy/health_endpoints/_health_endpoints.py b/litellm/proxy/health_endpoints/_health_endpoints.pyindex 6bb9d893a12..e5d83d60195 100644--- a/litellm/proxy/health_endpoints/_health_endpoints.py+++ b/litellm/proxy/health_endpoints/_health_endpoints.py@@ -641,10 +641,10 @@ async def shared_health_check_status_endpoint(redis_cache=redis_usage_cache,)- status = await shared_health_manager.get_health_check_status()+ health_status = await shared_health_manager.get_health_check_status()return {"shared_health_check_enabled": True,- "status": status+ "status": health_status}except Exception as e:verbose_proxy_logger.error(f"Error getting shared health check status: {e}")