diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py index 3cda0a64..0db9ac85 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 errors app.add_exception_handler(NoResultFound, _error_handler_404)