diff --git a/docling/document_converter.py b/docling/document_converter.py index 17acf110..0884cc58 100644 --- a/docling/document_converter.py +++ b/docling/document_converter.py @@ -188,11 +188,7 @@ class DocumentConverter: def _get_pipeline_options_hash(self, pipeline_options: PipelineOptions) -> str: """Generate a hash of pipeline options to use as part of the cache key.""" - options_str = str( - pipeline_options.model_dump() - if hasattr(pipeline_options, "model_dump") - else pipeline_options - ) + options_str = str(pipeline_options.model_dump()) return hashlib.md5(options_str.encode("utf-8")).hexdigest() def initialize_pipeline(self, format: InputFormat):