diff --git a/libs/langchain/langchain/memory/chat_message_histories/dynamodb.py b/libs/langchain/langchain/memory/chat_message_histories/dynamodb.py index 318afdce13a..353356ef5ba 100644 --- a/libs/langchain/langchain/memory/chat_message_histories/dynamodb.py +++ b/libs/langchain/langchain/memory/chat_message_histories/dynamodb.py @@ -53,7 +53,7 @@ class DynamoDBChatMessageHistory(BaseChatMessageHistory): kms_key_id: Optional[str] = None, ): if boto3_session: - client = boto3_session.resource("dynamodb") + client = boto3_session.resource("dynamodb", endpoint_url=endpoint_url) else: try: import boto3