Fixed deepcopy failure when passing llm_client

This commit is contained in:
scalabreseGD 2025-03-05 15:32:31 +01:00 committed by GitHub
parent 1d2f231146
commit 1c746925d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -325,7 +325,7 @@ class MarkItDown:
for ext in extensions + [None]: # Try last with no extension for ext in extensions + [None]: # Try last with no extension
for converter in sorted_converters: for converter in sorted_converters:
_kwargs = copy.deepcopy(kwargs) _kwargs = {k:v for k,v in kwargs.items()}
# Overwrite file_extension appropriately # Overwrite file_extension appropriately
if ext is None: if ext is None: