From fc2296a459bf7efdbcaa9ff3637af3d05131d77a Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 27 May 2025 22:21:19 +0200 Subject: [PATCH] feat: add imageGeneration param (#311) * Update file_config.mdx * Update file_config.mdx --- .../object_structure/file_config.mdx | 37 +++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/pages/docs/configuration/librechat_yaml/object_structure/file_config.mdx b/pages/docs/configuration/librechat_yaml/object_structure/file_config.mdx index 7840cf7..197301e 100644 --- a/pages/docs/configuration/librechat_yaml/object_structure/file_config.mdx +++ b/pages/docs/configuration/librechat_yaml/object_structure/file_config.mdx @@ -4,11 +4,12 @@ The `fileConfig` object allows you to configure file handling settings for the application, including size limits and MIME type restrictions. This section provides a detailed breakdown of the `fileConfig` object structure. -There are 3 main fields under `fileConfig`: +There are 4 main fields under `fileConfig`: - `endpoints` - `serverFileSizeLimit` - `avatarSizeLimit` + - `imageGeneration` **Notes:** @@ -50,7 +51,9 @@ fileConfig: - "image/.*" serverFileSizeLimit: 1000 avatarSizeLimit: 2 - + imageGeneration: + percentage: 100 + px: 1024 ``` ## serverFileSizeLimit @@ -66,7 +69,6 @@ fileConfig: serverFileSizeLimit: 1000 ``` - ## avatarSizeLimit + +`imageGeneration` supports the following parameters: + +- `percentage` (Integer) + - The output size of the generated image expressed as a percentage (e.g., `100` means 100% of base size). + - Use this to scale the output image relative to a default or original size. + +- `px` (Integer) + - Specifies the output image dimension in pixels (e.g., `1024`). + - Use this to explicitly set the output size of the generated image regardless of base size. + +You may set only one of these parameters (`percentage` or `px`), not both, depending on your use case + +Example configuration: + +```yaml filename="fileConfig / imageGeneration" +fileConfig: + imageGeneration: + percentage: 100 + px: 1024 +``` + ## endpoints