FastGPT
FastGPT copied to clipboard
Feat: AWS S3 support
Sweep Summary 
Adds AWS S3 object storage support to FastGPT as an alternative file storage option for chat files.
- Implemented S3 client integration in
packages/service/common/file/s3/index.tsusing Minio library for bucket operations and presigned URL generation. - Created a new API endpoint in
projects/app/src/pages/api/common/file/s3PresignedUpload.tsto handle S3 presigned URL generation with proper authentication. - Modified the file upload controller in
projects/app/src/web/common/file/controller.tsto use S3 for chat files while keeping MongoDB GridFS for dataset files. - Added S3 configuration parameters to
.env.templateand updated system initialization to verify S3 bucket existence on startup.