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

Add markdown() method to Response class #340

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

supercoder-dev
Copy link

This implements the feature requested in issue #339. I've added a new markdown() method to the Response class. This method extracts markdown text from the response content, making it easier to work with LLM-friendly formats. used BeautifulSoup and html2text libraries, which are now optional dependencies.

@perklet
Copy link
Collaborator

perklet commented Jul 5, 2024

Cool, thanks.

We need to add these dependencies as an optional dependency group in pyproject.toml and add unit tests for this method.

Besides, I would like to add readability-lxml and lxml as another extract engine.

With all due respect, I think this comment sounds like a LLM-powered bot.

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.

2 participants