fix: expose max wait time in sync endpoints (#164)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi
2025-04-30 12:30:11 +02:00
committed by GitHub
parent 35c2630c61
commit 919cf5c041
3 changed files with 8 additions and 4 deletions

View File

@@ -48,6 +48,8 @@ class DoclingServeSettings(BaseSettings):
max_num_pages: int = sys.maxsize
max_file_size: int = sys.maxsize
max_sync_wait: int = 120 # 2 minutes
cors_origins: list[str] = ["*"]
cors_methods: list[str] = ["*"]
cors_headers: list[str] = ["*"]