Skip to content

Commit

Permalink
chore: read page as markdown by default
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Aug 22, 2024
1 parent 7890909 commit 72b8688
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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"

0 comments on commit 72b8688

Please sign in to comment.