From f389c4fcabee1428b954a3d59e7f55515cb3d0a6 Mon Sep 17 00:00:00 2001 From: Christophe Bornet Date: Tue, 5 Sep 2023 00:59:22 +0200 Subject: [PATCH] Fix S3DirectoryLoader exception (#10193) #9304 introduced a critical bug. The S3DirectoryLoader fails completely because boto3 checks the naming of kw arguments and one of the args is badly named (very sorry for that) cc @baskaryan --- libs/langchain/langchain/document_loaders/s3_directory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/document_loaders/s3_directory.py b/libs/langchain/langchain/document_loaders/s3_directory.py index 5c964fed53..1363c82647 100644 --- a/libs/langchain/langchain/document_loaders/s3_directory.py +++ b/libs/langchain/langchain/document_loaders/s3_directory.py @@ -114,7 +114,7 @@ class S3DirectoryLoader(BaseLoader): aws_access_key_id=self.aws_access_key_id, aws_secret_access_key=self.aws_secret_access_key, aws_session_token=self.aws_session_token, - boto_config=self.boto_config, + config=self.boto_config, ) bucket = s3.Bucket(self.bucket) docs = []