From 88b5e706dbecf958a7fc9dfcf675287d341aaeb0 Mon Sep 17 00:00:00 2001
From: Marco Beretta <81851188+berry-13@users.noreply.github.com>
Date: Mon, 26 May 2025 22:17:52 +0200
Subject: [PATCH 1/2] 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 7840cf71d..5bd8015a8 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 one or both parameters depending on your use case.
+
+Example configuration:
+
+```yaml filename="fileConfig / imageGeneration"
+fileConfig:
+ imageGeneration:
+ percentage: 100
+ px: 1024
+```
+
## endpoints
Date: Mon, 26 May 2025 22:24:21 +0200
Subject: [PATCH 2/2] Update file_config.mdx
---
.../librechat_yaml/object_structure/file_config.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 5bd8015a8..197301e96 100644
--- a/pages/docs/configuration/librechat_yaml/object_structure/file_config.mdx
+++ b/pages/docs/configuration/librechat_yaml/object_structure/file_config.mdx
@@ -100,7 +100,7 @@ fileConfig:
- 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 one or both parameters depending on your use case.
+You may set only one of these parameters (`percentage` or `px`), not both, depending on your use case
Example configuration: