* chore: move v1health to async * chore: make async --------- Co-authored-by: Shubham Naik <shub@memgpt.ai>
21 lines
429 B
Python
21 lines
429 B
Python
from typing import TYPE_CHECKING
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from letta import __version__
|
|
from letta.schemas.health import Health
|
|
|
|
if TYPE_CHECKING:
|
|
pass
|
|
|
|
router = APIRouter(prefix="/health", tags=["health"])
|
|
|
|
|
|
@router.get("/", response_model=Health, operation_id="check_health")
|
|
async def check_health():
|
|
"""Async health check endpoint."""
|
|
return Health(
|
|
version=__version__,
|
|
status="ok",
|
|
)
|