Skip to content

Commit

Permalink
Properly remove Mathpix kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Norvell committed Nov 28, 2023
1 parent e396e07 commit 15d6502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/langchain/langchain/document_loaders/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ def __init__(
)

# The base class isn't expecting these and doesn't collect **kwargs
kwargs.pop("mathpix_api_key")
kwargs.pop("mathpix_api_id")
kwargs.pop("mathpix_api_key", None)
kwargs.pop("mathpix_api_id", None)

super().__init__(file_path, **kwargs)
self.processed_file_format = processed_file_format
Expand Down

0 comments on commit 15d6502

Please sign in to comment.