Add a health check endpoint for proxy.

This commit is contained in:
Hemang
2025-02-06 14:59:23 +01:00
parent fe9e103ae6
commit 7c692fa6df
+7
View File
@@ -15,6 +15,13 @@ app.add_middleware(CompressMiddleware)
router = fastapi.APIRouter(prefix="/api/v1")
@router.get("/proxy/health", tags=["health_check"], include_in_schema=False)
async def get_proxy_info():
"""Health check"""
return {"message": "Hello v1/proxy"}
router.include_router(open_ai_proxy, prefix="/proxy", tags=["open_ai_proxy"])
router.include_router(anthropic_proxy, prefix="/proxy", tags=["anthropic_proxy"])