Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix(load-directory): Fix up file extension comparison & path list construction
Krishnakumar R (KK)ecafa12ac93e
diff --git a/letta/cli/cli_load.py b/letta/cli/cli_load.pyindex b27da4d81..4c420bfa7 100644--- a/letta/cli/cli_load.py+++ b/letta/cli/cli_load.py@@ -20,7 +20,7 @@ from letta.data_sources.connectors import DirectoryConnectorapp = typer.Typer()-default_extensions = ".txt,.md,.pdf"+default_extensions = "txt,md,pdf"@app.command("directory")diff --git a/letta/data_sources/connectors_helper.py b/letta/data_sources/connectors_helper.pyindex 9d32e4725..95d3dbff8 100644--- a/letta/data_sources/connectors_helper.py+++ b/letta/data_sources/connectors_helper.py@@ -73,7 +73,7 @@ def get_filenames_in_dir(ext = file_path.suffix.lstrip(".")# If required_exts is empty, match any fileif not required_exts or ext in required_exts:- files.append(file_path)+ files.append(str(file_path))return files