Fix a bug where letta version is not printed
This commit is contained in:
@@ -361,4 +361,4 @@ def delete_agent(
|
||||
def version() -> str:
|
||||
import letta
|
||||
|
||||
return letta.__version__
|
||||
print(letta.__version__)
|
||||
|
||||
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user