🚀 feat: Integrate Azure Blob Storage
for file handling and image uploads
#6153
+749
−45
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Docs: LibreChat-AI/librechat.ai#256
This pull request introduces Azure Blob Storage support to the application. The changes include environment configuration updates, dependency additions, service initialization, and CRUD operations for handling files in Azure Blob Storage. The most important changes are summarized below:
Environment Configuration:
.env.example
: Added environment variables for Azure Blob Storage configuration.Dependency Updates:
api/package.json
: Added dependencies for Azure Blob Storage and identity management (@azure/identity
,@azure/storage-blob
).Service Initialization:
api/server/services/AppService.js
: Added initialization for Azure Blob Storage based on the file strategy [1] [2].Azure Blob Storage CRUD Operations:
api/server/services/Files/Azure/crud.js
: Implemented functions for uploading, retrieving, and deleting files in Azure Blob Storage.api/server/services/Files/Azure/images.js
: Implemented functions for handling image uploads and processing avatars in Azure Blob Storage.Strategy Integration:
api/server/services/Files/strategies.js
: Integrated Azure Blob Storage as a file handling strategy [1] [2] [3] [4] [5] [6].These changes collectively enable the application to utilize Azure Blob Storage for file management, providing an alternative to existing file storage solutions.
Change Type
Testing
Please describe your test process and include instructions so that we can reproduce your test. If there are any important variables for your testing configuration, list them here.
Test Configuration:
Checklist