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.

chore: fix generation (#3262)

Shubham Naik606cbefc0ac8
diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py
index 8ddb175f0..c630e2f59 100644
--- a/letta/server/rest_api/app.py
+++ b/letta/server/rest_api/app.py
@@ -337,8 +337,11 @@ def create_application() -> "FastAPI":
# / static files
mount_static_files(app)
+ no_generation = "--no-generation" in sys.argv
+
# Generate OpenAPI schema after all routes are mounted
- generate_openapi_schema(app)
+ if not no_generation:
+ generate_openapi_schema(app)
return app