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
This commit is contained in:
Morteza Hosseini 2024-07-23 15:27:55 +01:00 committed by GitHub
parent a14e02ab33
commit 9e06991aae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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},
)