chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

storage_clients wrong dependencies import

Open Cerrix opened this issue 1 year ago • 0 comments
trafficstars

Describe the bug Using dynamoDB requires to import the S3 storage client: from chainlit.data.storage_clients import S3StorageClient this package requires both boto3 and azure dependencies. It would be better to separate these 2 packages in order to use only the needed dependencies

To Reproduce Steps to reproduce the behavior:

  1. do not install Azure in your environment
  2. import from chainlit.data.storage_clients import S3StorageClient
  3. get import error

Expected behavior Be succesful since Azure is not needed for S3 (and viceversa the AzureStorageClient does not need boto3)

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

Cerrix avatar Jul 29 '24 12:07 Cerrix