From f14d9dc7da9e5e3e10294c815781af775d0162e1 Mon Sep 17 00:00:00 2001 From: alpha-nerd-nomyo Date: Thu, 13 Nov 2025 10:06:23 +0100 Subject: [PATCH] don't query non-Ollama endpoints for health status --- router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.py b/router.py index 0b5129e..8a797de 100644 --- a/router.py +++ b/router.py @@ -1700,7 +1700,7 @@ async def health_proxy(request: Request): * The HTTP status code is 200 when everything is healthy, 503 otherwise. """ # Run all health checks in parallel - tasks = [fetch.endpoint_details(ep, "/api/version", "version") for ep in config.endpoints] + tasks = [fetch.endpoint_details(ep, "/api/version", "version") for ep in config.endpoints if not is_ext_openai_endpoint(ep)] results = await asyncio.gather(*tasks, return_exceptions=True)