From e2b4c76df0d4058ffd08eaf384b810931d43d756 Mon Sep 17 00:00:00 2001 From: Shubham Naik Date: Fri, 10 Jan 2025 11:57:33 -0800 Subject: [PATCH] feat: v1 desktop ui (#586) Co-authored-by: Shubham Naik --- letta/server/rest_api/app.py | 4 ---- letta/settings.py | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py index 63ff9b8b..b09d2ddf 100644 --- a/letta/server/rest_api/app.py +++ b/letta/server/rest_api/app.py @@ -244,10 +244,6 @@ def create_application() -> "FastAPI": # / static files mount_static_files(app) - @app.on_event("startup") - def on_startup(): - generate_openapi_schema(app) - @app.on_event("shutdown") def on_shutdown(): global server diff --git a/letta/settings.py b/letta/settings.py index 03c6f86d..3f83bde2 100644 --- a/letta/settings.py +++ b/letta/settings.py @@ -59,6 +59,9 @@ class ModelSettings(BaseSettings): openllm_auth_type: Optional[str] = None openllm_api_key: Optional[str] = None + # disable openapi schema generation + disable_schema_generation: bool = False + cors_origins = [ "http://letta.localhost",