Commit
·
3f751c1
1
Parent(s):
99d136b
fix: align limitation with env (#1819)
Browse files### What problem does this PR solve?
try to process the large file will throw a File size exceeds error
### Type of change
- [x] Refactoring
Co-authored-by: Theta Wang (ncu) <[email protected]>
- rag/settings.py +1 -1
rag/settings.py
CHANGED
@@ -30,7 +30,7 @@ try:
|
|
30 |
except Exception as e:
|
31 |
REDIS = {}
|
32 |
pass
|
33 |
-
DOC_MAXIMUM_SIZE = 128 * 1024 * 1024
|
34 |
|
35 |
# Logger
|
36 |
LoggerFactory.set_directory(
|
|
|
30 |
except Exception as e:
|
31 |
REDIS = {}
|
32 |
pass
|
33 |
+
DOC_MAXIMUM_SIZE = int(os.environ.get("MAX_CONTENT_LENGTH", 128 * 1024 * 1024))
|
34 |
|
35 |
# Logger
|
36 |
LoggerFactory.set_directory(
|