refactor: remove allowed_formats from DocumentConverter initialization in DoclingService to allow acceptance of all supported formats

This commit is contained in:
Anish Sarkar 2026-04-06 19:31:42 +05:30
parent caca491774
commit 47f4be08d9
2 changed files with 13 additions and 15 deletions

View file

@ -111,9 +111,7 @@ class DoclingService:
pipeline_options=pipeline_options, backend=PyPdfiumDocumentBackend
)
# Initialize DocumentConverter with PDF and IMAGE support
self.converter = DocumentConverter(
allowed_formats=[InputFormat.PDF, InputFormat.IMAGE],
format_options={InputFormat.PDF: pdf_format_option},
)