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

chore: read page as markdown by default #8

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
"promplate-recipes~=0.2.2.1",
"pyyaml~=6.0.1",
"html-text~=0.6.2",
"html2text",
"html2text2~=1.0.0",
]

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion reasonify-headless/reasonify/tools/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class FetchFailed(Exception): ...


@tool
async def read_page(url: str, parse_as: Literal["innerText", "plain", "markdown"] = "plain") -> tuple[int, str]:
async def read_page(url: str, parse_as: Literal["innerText", "plain", "markdown"] = "markdown") -> tuple[int, str]:
"""
fetch the content of a web page,
returns its status code and text content.
Expand Down
2 changes: 1 addition & 1 deletion reasonify-headless/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.2"
__version__ = "0.1.3"