Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2markdown loader #4796

Merged
merged 7 commits into from
May 17, 2023
Merged

2markdown loader #4796

merged 7 commits into from
May 17, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

self.api_key = api_key

@classmethod
def from_api_key(cls, url: str, api_key: str) -> ToMarkdownLoader:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as the __ init _ _ ?

@eyurtsev
Copy link
Collaborator

@hwchase17 removed class method, added lazy load. Feel free to merge if you're OK with it. Revert if I messed something up (or send emoji of sad cats)

json={"url": self.url},
)
text = response.json()["article"]
metadata = {"url": self.url}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add "source"

@hwchase17 hwchase17 merged commit 720ac49 into master May 17, 2023
@hwchase17 hwchase17 deleted the harrison/2markdown branch May 17, 2023 06:42
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
This was referenced Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants