Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

feat: v1 desktop ui (#586)

Shubham Naike2b4c76df0d4
diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py
index 63ff9b8b7..b09d2ddfb 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 03c6f86dc..3f83bde21 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",