feat: Add optional client-side image resizing to prevent upload errors

This commit is contained in:
Rakshit Tiwari 2025-06-15 11:50:01 +05:30
parent 0103b4b08a
commit 8703b9c2d8
7 changed files with 490 additions and 21 deletions

View file

@ -297,6 +297,12 @@ endpoints:
# imageGeneration: # Image Gen settings, either percentage or px
# percentage: 100
# px: 1024
# # Client-side image resizing to prevent upload errors
# clientSideImageResize:
# enabled: false # Enable/disable client-side image resizing (default: false)
# maxWidth: 1900 # Maximum width for resized images (default: 1900)
# maxHeight: 1900 # Maximum height for resized images (default: 1900)
# quality: 0.92 # JPEG quality for compression (0.0-1.0, default: 0.92)
# # See the Custom Configuration Guide for more information on Assistants Config:
# # https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/assistants_endpoint