mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 00:23:25 +00:00
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:
parent
a14e02ab33
commit
9e06991aae
@ -21,7 +21,7 @@ class ToMarkdownLoader(BaseLoader):
|
|||||||
) -> Iterator[Document]:
|
) -> Iterator[Document]:
|
||||||
"""Lazily load the file."""
|
"""Lazily load the file."""
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
"https://2markdown.com/api/2md",
|
"https://api.2markdown.com/v1/url2md",
|
||||||
headers={"X-Api-Key": self.api_key},
|
headers={"X-Api-Key": self.api_key},
|
||||||
json={"url": self.url},
|
json={"url": self.url},
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user