-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: AWS S3 Support #3373
base: main
Are you sure you want to change the base?
Conversation
thanks! |
Have not seen progress on this, let me know if you will still be working on it or need any guidance |
I would gladly give you a hand on this if needed. In the meantime, I will use it in my fork |
Yeah, right now I'm working on another project and I don't know when I will come back to this |
Would be awesome to have this done! Please @GaelMartins0 |
I would like to propose expanding the storage support in this PR to include other providers that are compatible with the AWS S3 API. This would enhance flexibility for users who may prefer or require alternative storage solutions beyond AWS. Including support for additional providers could greatly benefit the community and broaden the usability of LibreChat across different environments. Thank you for your work on this feature! |
We are currently in the process of setting up LibreChat in our organization and would love to be able to use S3-compatible storage as well since our infrastructure is designed around that. To that end, I concur with @MSITETOP's point. Actually, V2 of the AWS JavaScript SDK has been deprecated in favour of V3 and will reach its end of support by September 2025. V3 "natively" comes with support for profiles and endpoints as used e.g. with the @GaelMartins0 What are your thoughts on switching straight to V3 of the SDK? Migrating your existing code should require relatively little effort, AFAICT. |
Summary
This pull request introduces support for AWS S3 storage in LibreChat, providing an alternative to Firebase CDN for handling images and avatars. This enhancement aims to increase flexibility for users who prefer or are mandated to use AWS services.
Dependencies: This change requires the use of AWS SDK for JavaScript (v3), as well as configuration changes in the environment variables and librechat.yaml.
Change Type
Testing
Prerequisites
Steps
Reproduction
Checklist
Additional Notes
The functionality mirrors the existing Firebase CDN setup, including image and avatar handling, and adds necessary configuration for S3 bucket management. There are still issues with URL generation using pre-signed URLs which have an expiration date, implying images cannot be accessed post-expiration without regeneration.