mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
add health check endpoint
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user