feat: Expose more conversion options (#142)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi
2025-04-22 10:41:47 +02:00
committed by GitHub
parent b598872e5c
commit 6b3d281f02
8 changed files with 1058 additions and 930 deletions

View File

@@ -1,3 +1,4 @@
import sys
from pathlib import Path
from typing import Optional, Union
@@ -38,6 +39,10 @@ class DoclingServeSettings(BaseSettings):
options_cache_size: int = 2
allow_external_plugins: bool = False
max_document_timeout: float = 3_600 * 24 * 7 # 7 days
max_num_pages: int = sys.maxsize
max_file_size: int = sys.maxsize
cors_origins: list[str] = ["*"]
cors_methods: list[str] = ["*"]
cors_headers: list[str] = ["*"]