From 30d738c83c8cc89bd9543d4d223a1f87fa4a6b87 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 8 Jan 2024 17:45:00 +0530 Subject: [PATCH] fix(proxy_server.py): improve /health/readiness endpoint to give more details on connected services --- litellm/proxy/proxy_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index bd30667d18..9dc4462a0e 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -2480,9 +2480,9 @@ async def health_readiness(): global prisma_client if prisma_client is not None: # if db passed in, check if it's connected if prisma_client.db.is_connected() == True: - return {"status": "healthy"} + return {"status": "healthy", "db": "connected"} else: - return {"status": "healthy"} + return {"status": "healthy", "db": "Not connected"} raise HTTPException(status_code=503, detail="Service Unhealthy")