fix ruff pre-commit

This commit is contained in:
Sumit Jaiswal 2025-06-02 23:49:55 +05:30
parent 3840ef7a98
commit 44401f0a88
No known key found for this signature in database
GPG key ID: A4604B39D64D6AEC

View file

@ -602,7 +602,7 @@ class InferenceRouter(Inference):
async def health(self) -> dict[str, HealthResponse]: async def health(self) -> dict[str, HealthResponse]:
health_statuses = {} health_statuses = {}
timeout = 1 # increasing the timeout to 1 second for health checks timeout = 1 # increasing the timeout to 1 second for health checks
for provider_id, impl in self.routing_table.impls_by_provider_id.items(): for provider_id, impl in self.routing_table.impls_by_provider_id.items():
try: try:
# check if the provider has a health method # check if the provider has a health method