add document limit check (#570)

This commit is contained in:
Jyong
2023-07-16 13:21:56 +08:00
committed by GitHub
parent 24f3456990
commit 2c6e00174b
2 changed files with 27 additions and 1 deletions

View File

@@ -50,7 +50,8 @@ DEFAULTS = {
'PDF_PREVIEW': 'True',
'LOG_LEVEL': 'INFO',
'DISABLE_PROVIDER_CONFIG_VALIDATION': 'False',
'DEFAULT_LLM_PROVIDER': 'openai'
'DEFAULT_LLM_PROVIDER': 'openai',
'TENANT_DOCUMENT_COUNT': 100
}
@@ -207,6 +208,8 @@ class Config:
self.NOTION_INTERNAL_SECRET = get_env('NOTION_INTERNAL_SECRET')
self.NOTION_INTEGRATION_TOKEN = get_env('NOTION_INTEGRATION_TOKEN')
self.TENANT_DOCUMENT_COUNT = get_env('TENANT_DOCUMENT_COUNT')
class CloudEditionConfig(Config):