chainlit
chainlit copied to clipboard
AzureStorageClient does not implement the methods delete_file and get_read_url required by the BaseStorageClient class
Describe the bug
The AzureStorageClient class in chainlit.data.storage_clients.azure implements the upload_file method but does not implement the other abstract methods delete_file and get_read_url from the BaseStorageClient class in base.py. The BaseStorageClient class defines these methods as abstract methods, so the AzureStorageClient subclass must provide concrete implementations for all of them.
To Reproduce Attempting to instantiate AzureStorageClient like this:
chat_history_storage_client = AzureStorageClient( account_url=storage_account_url, container=container_name, credential=chat_history_blob_named_key_credential, sas_token=sas_token )
results in:
TypeError: Can't instantiate abstract class AzureStorageClient without an implementation for abstract methods 'delete_file', 'get_read_url'
Desktop:
- OS: MacOS 15.3