소스 검색

fix: align limitation with env (#1819)

### 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) <chunshan.connect@gmail.com>
tags/v0.10.0
Wang 1 년 전
부모
커밋
66e4113e0b
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      rag/settings.py

+ 1
- 1
rag/settings.py 파일 보기

except Exception as e: except Exception as e:
REDIS = {} REDIS = {}
pass pass
DOC_MAXIMUM_SIZE = 128 * 1024 * 1024
DOC_MAXIMUM_SIZE = int(os.environ.get("MAX_CONTENT_LENGTH", 128 * 1024 * 1024))
# Logger # Logger
LoggerFactory.set_directory( LoggerFactory.set_directory(

Loading…
취소
저장