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",