build: add hot reload config for core letta server (#2093)

This commit is contained in:
jnjpng
2025-05-09 11:39:43 -07:00
committed by GitHub
parent 8bb194541e
commit 3fa1a295ba
3 changed files with 16 additions and 3 deletions

View File

@@ -42,6 +42,7 @@ def server(
port: Annotated[Optional[int], typer.Option(help="Port to run the server on")] = None,
host: Annotated[Optional[str], typer.Option(help="Host to run the server on (default to localhost)")] = None,
debug: Annotated[bool, typer.Option(help="Turn debugging output on")] = False,
reload: Annotated[bool, typer.Option(help="Enable hot-reload")] = False,
ade: Annotated[bool, typer.Option(help="Allows remote access")] = False, # NOTE: deprecated
secure: Annotated[bool, typer.Option(help="Adds simple security access")] = False,
localhttps: Annotated[bool, typer.Option(help="Setup local https")] = False,
@@ -61,7 +62,7 @@ def server(
try:
from letta.server.rest_api.app import start_server
start_server(port=port, host=host, debug=debug)
start_server(port=port, host=host, debug=debug, reload=reload)
except KeyboardInterrupt:
# Handle CTRL-C