Fix SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION not working (#13961)

This commit is contained in:
fzyzcjy
2025-11-25 21:58:55 -08:00
committed by GitHub
parent 35a4c21a8a
commit 7130ad3a29
+1 -1
View File
@@ -421,7 +421,7 @@ async def health_generate(request: Request) -> Response:
return Response(status_code=503)
if (
not envs.SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION
not envs.SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION.get()
and request.url.path == "/health"
):
return Response(status_code=200)