mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 04:25:59 +08:00
Fix/azure blob new version (#5004)
This commit is contained in:
parent
1ccba85c91
commit
481e7bc6b9
@ -39,7 +39,7 @@ class AzureStorage(BaseStorage):
|
||||
def generate(filename: str = filename) -> Generator:
|
||||
blob = client.get_blob_client(container=self.bucket_name, blob=filename)
|
||||
with closing(blob.download_blob()) as blob_stream:
|
||||
while chunk := blob_stream.readall(4096):
|
||||
while chunk := blob_stream.readall():
|
||||
yield chunk
|
||||
|
||||
return generate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user