Fixed deepcopy failure when passing llm_client (#1089)

Co-authored-by: afourney <adamfo@microsoft.com>
This commit is contained in:
scalabreseGD 2025-03-06 08:25:37 +01:00 committed by GitHub
parent 80baa5db18
commit 36c4bc9ec3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -455,7 +455,7 @@ class MarkItDown:
cur_pos == file_stream.tell()
), f"File stream position should NOT change between guess iterations"
_kwargs = copy.deepcopy(kwargs)
_kwargs = {k:v for k,v in kwargs.items()}
# Copy any additional global options
if "llm_client" not in _kwargs and self._llm_client is not None: