Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix/file stream azure blob (#6196)

Jyong678ad6b7eb2e
diff --git a/api/extensions/storage/azure_storage.py b/api/extensions/storage/azure_storage.py
index 3403bc6171a..af3e7ef8491 100644
--- a/api/extensions/storage/azure_storage.py
+++ b/api/extensions/storage/azure_storage.py
@@ -38,9 +38,8 @@ class AzureStorage(BaseStorage):
def generate(filename: str = filename) -> Generator:
blob = client.get_blob_client(container=self.bucket_name, blob=filename)
blob_data = blob.download_blob()
- for chunk in blob_data.chunks():
- yield from chunk
- return generate()
+ yield from blob_data.chunks()
+ return generate(filename)
def download(self, filename, target_filepath):
client = self._sync_client()