-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Error:
from chainlit.data.storage_clients import S3StorageClient
ImportError: cannot import name 'S3StorageClient' from 'chainlit.data.storage_clients' (/usr/local/lib/python3.12/site-packages/chainlit/data/storage_clients/init.py)
requirements.txt:
chainlit
langchain_openai
pydantic
langchain_core
langchain-community
langchain
opensearch-py
boto3
asyncpg
SQLAlchemy
azure-identity
azure-storage-file-datalake
aiohttp
greenlet
Code:
from chainlit import logger
from chainlit.data.dynamodb import DynamoDBDataLayer
from chainlit.data.storage_clients import S3StorageClient
storage_client = S3StorageClient(bucket="michatbot-history")
cl_data._data_layer = DynamoDBDataLayer(table_name="michatbot", storage_provider=storage_client)
logger.getChild("DynamoDB").setLevel(logging.DEBUG)