Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: add value error to middlware for 400 (#5173)
cthomaseb2a6f689034
diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.pyindex 3cda0a64e..0db9ac851 100644--- a/letta/server/rest_api/app.py+++ b/letta/server/rest_api/app.py@@ -254,6 +254,7 @@ def create_application() -> "FastAPI":app.add_exception_handler(LettaToolCreateError, _error_handler_400)app.add_exception_handler(LettaToolNameConflictError, _error_handler_400)app.add_exception_handler(AgentFileImportError, _error_handler_400)+ app.add_exception_handler(ValueError, _error_handler_400)# 404 Not Found errorsapp.add_exception_handler(NoResultFound, _error_handler_404)