Connect engine healthcheck to openai server (#3260)
This commit is contained in:
parent
b35cc93420
commit
d2339d6840
@ -160,6 +160,7 @@ async def validation_exception_handler(_, exc):
|
|||||||
@app.get("/health")
|
@app.get("/health")
|
||||||
async def health() -> Response:
|
async def health() -> Response:
|
||||||
"""Health check."""
|
"""Health check."""
|
||||||
|
await openai_serving_chat.engine.check_health()
|
||||||
return Response(status_code=200)
|
return Response(status_code=200)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user