don't query non-Ollama endpoints for health status
This commit is contained in:
parent
1427e98e6d
commit
f14d9dc7da
1 changed files with 1 additions and 1 deletions
|
|
@ -1700,7 +1700,7 @@ async def health_proxy(request: Request):
|
||||||
* The HTTP status code is 200 when everything is healthy, 503 otherwise.
|
* The HTTP status code is 200 when everything is healthy, 503 otherwise.
|
||||||
"""
|
"""
|
||||||
# Run all health checks in parallel
|
# 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)
|
results = await asyncio.gather(*tasks, return_exceptions=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue