From b3b2e36d8b99302bcdeb2374e19463ba2389256e Mon Sep 17 00:00:00 2001 From: Nathan Azrak Date: Sat, 28 Dec 2024 12:12:51 +1100 Subject: [PATCH] Change /ping to post endpoint per AWS documentation Signed-off-by: Nathan Azrak --- vllm/entrypoints/openai/api_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/entrypoints/openai/api_server.py b/vllm/entrypoints/openai/api_server.py index abf247095acd7..befe2e6ead97e 100644 --- a/vllm/entrypoints/openai/api_server.py +++ b/vllm/entrypoints/openai/api_server.py @@ -319,7 +319,7 @@ async def health(raw_request: Request) -> Response: return Response(status_code=200) -@router.get("/ping") +@router.post("/ping") async def ping(raw_request: Request) -> Response: """Ping check. Endpoint required for SageMaker""" return await health(raw_request)