chore: drop ade flag (#2185)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
@@ -51,7 +51,6 @@ 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,
|
||||
ade: Annotated[bool, typer.Option(help="Allows remote access")] = False,
|
||||
secure: Annotated[bool, typer.Option(help="Adds simple security access")] = False,
|
||||
):
|
||||
"""Launch a Letta server process"""
|
||||
|
||||
@@ -144,9 +144,8 @@ def create_application() -> "FastAPI":
|
||||
debug=True,
|
||||
)
|
||||
|
||||
if (os.getenv("LETTA_SERVER_ADE") == "true") or "--ade" in sys.argv:
|
||||
settings.cors_origins.append("https://app.letta.com")
|
||||
print(f"▶ View using ADE at: https://app.letta.com/development-servers/local/dashboard")
|
||||
settings.cors_origins.append("https://app.letta.com")
|
||||
print(f"▶ View using ADE at: https://app.letta.com/development-servers/local/dashboard")
|
||||
|
||||
if (os.getenv("LETTA_SERVER_SECURE") == "true") or "--secure" in sys.argv:
|
||||
print(f"▶ Using secure mode with password: {random_password}")
|
||||
|
||||
Reference in New Issue
Block a user