add health check endpoint

This commit is contained in:
Markus Ecker
2025-03-19 13:17:34 +01:00
parent 698c09779a
commit ca4d114e79
@@ -81,6 +81,12 @@ sdk = CopilotKitRemoteEndpoint(
add_fastapi_endpoint(app, sdk, "/copilotkit")
@app.get("/healthz")
def health():
"""Health check."""
return {"status": "ok"}
def main():
"""Run the uvicorn server."""
port = int(os.getenv("PORT", "8000"))