From 9e06991aae4519c31f71b5e356ff1479bb7a93af Mon Sep 17 00:00:00 2001 From: Morteza Hosseini Date: Tue, 23 Jul 2024 15:27:55 +0100 Subject: [PATCH] community[patch]: Update URL to the 2markdown API (#24546) Update the URL to Markdown endpoint. API information is available here: https://2markdown.com/docs#url2md --- .../langchain_community/document_loaders/tomarkdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/community/langchain_community/document_loaders/tomarkdown.py b/libs/community/langchain_community/document_loaders/tomarkdown.py index 0ac36b5aeb8..4c30141dade 100644 --- a/libs/community/langchain_community/document_loaders/tomarkdown.py +++ b/libs/community/langchain_community/document_loaders/tomarkdown.py @@ -21,7 +21,7 @@ class ToMarkdownLoader(BaseLoader): ) -> Iterator[Document]: """Lazily load the file.""" response = requests.post( - "https://2markdown.com/api/2md", + "https://api.2markdown.com/v1/url2md", headers={"X-Api-Key": self.api_key}, json={"url": self.url}, )