Skip to content

Commit 0cc80cb

Browse files
committed
Add healthcheck endpoint for langevals server, useful to see if its still running and keep it up
1 parent 2550756 commit 0cc80cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

langevals/server.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ async def evaluate(
8282
create_evaluator_routes(evaluator_cls)
8383

8484

85+
@app.get("/healthcheck")
86+
async def healthcheck():
87+
return {"status": "healthy"}
88+
89+
8590
@app.exception_handler(ValidationError)
8691
async def validation_exception_handler(request: Request, exc: ValidationError):
8792
raise HTTPException(

0 commit comments

Comments
 (0)