Fix a bug where letta version is not printed

This commit is contained in:
Tevin Zhang
2025-01-23 21:02:58 +08:00
parent 16068babcd
commit 36ef6a2f68
2 changed files with 3 additions and 3 deletions

View File

@@ -361,4 +361,4 @@ def delete_agent(
def version() -> str:
import letta
return letta.__version__
print(letta.__version__)

View File

@@ -2,7 +2,7 @@ from typing import TYPE_CHECKING
from fastapi import APIRouter
from letta.cli.cli import version
from letta import __version__
from letta.schemas.health import Health
if TYPE_CHECKING:
@@ -15,6 +15,6 @@ router = APIRouter(prefix="/health", tags=["health"])
@router.get("/", response_model=Health, operation_id="health_check")
def health_check():
return Health(
version=version(),
version=__version__,
status="ok",
)