Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: add convenience link to open ADE from server launch (#1986)
Charles Packer0bbd9d43ad28
diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.pyindex a0daff26b..f8300a971 100644--- a/letta/server/rest_api/app.py+++ b/letta/server/rest_api/app.py@@ -8,6 +8,7 @@ import uvicornfrom fastapi import FastAPIfrom starlette.middleware.cors import CORSMiddleware+from letta.__init__ import __version__from letta.constants import ADMIN_PREFIX, API_PREFIX, OPENAI_API_PREFIXfrom letta.schemas.letta_response import LettaResponsefrom letta.server.constants import REST_DEFAULT_PORT@@ -66,6 +67,7 @@ def create_application() -> "FastAPI":"""the application start routine"""# global server# server = SyncServer(default_interface_factory=lambda: interface())+ print(f"\n[[ Letta server // v{__version__} ]]")app = FastAPI(swagger_ui_parameters={"docExpansion": "none"},@@ -78,6 +80,7 @@ def create_application() -> "FastAPI":if "--ade" in sys.argv:settings.cors_origins.append("https://app.letta.com")+ print(f"▶ View using ADE at: https://app.letta.com/local-project/agents")app.add_middleware(CORSMiddleware,@@ -179,7 +182,7 @@ def start_server(# Add the handler to the loggerserver_logger.addHandler(stream_handler)- print(f"Running: uvicorn server:app --host {host or 'localhost'} --port {port or REST_DEFAULT_PORT}")+ print(f"▶ Server running at: http://{host or 'localhost'}:{port or REST_DEFAULT_PORT}\n")uvicorn.run(app,host=host or "localhost",