docs/self-hosting/environment-variables/s3.mdx
LobeHub supports multimodal AI sessions, including the ability to upload unstructured data such as images and files to large language models. To optimize storage and performance, we use S3-compatible file storage services to store image files and support file upload/knowledge base functionality.
S3_ACCESS_KEY_IDAKIAIOSFODNN7EXAMPLES3_SECRET_ACCESS_KEYwJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEYS3_ENDPOINTvirtual-host mode, should not include the bucket name prefixhttps://cos.ap-chengdu.myqcloud.comS3_BUCKETmy-bucketS3_REGIONap-chengduS3_SET_ACLpublic-read when uploading files10S3_ENABLE_PATH_STYLEpath-style access mode01<Callout type={'info'}>
path-style and virtual-host are different methods of accessing buckets and objects in S3, with differences in URL structure and domain name resolution.
Assuming the S3 service provider's domain is s3.example.net, the bucket is mybucket, and the object is config.env, the specific differences are:
s3.example.net/mybucket/config.envmybucket.s3.example.net/config.env
</Callout>
LLM_VISION_IMAGE_USE_BASE641 to use base64 encoding for image upload.1When set to 1, LobeHub will convert images to base64 encoding before uploading them to the LLM model. When encountering the following error, please consider configuring this environment variable to 1:
Route: [xai] ProviderBizError: Fetching images over plain http:// is not supported.
LLM_VISION_VIDEO_USE_BASE641 to use base64 encoding for video upload.1When set to 1, LobeChat will convert videos to base64 encoding before uploading them to the LLM model.