Skip to content

Commit

Permalink
Add annotate links
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryBrain committed Oct 17, 2024
1 parent 22161ad commit b141f9a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,13 @@ class LlamaParse(BasePydanticReader):
description="Disable the OCR on the document. LlamaParse will only extract the copyable text from the document.",
)
is_formatting_instruction: bool = Field(
default=False,
default=True,
description="Allow the parsing instruction to also format the output. Disable to have a cleaner markdown output.",
)
# Coming Soon
# annotate_links: bool = Field(
# default=False,
# description="Annotate links found in the document to extract their URL.",
# )
annotate_links: bool = Field(
default=False,
description="Annotate links found in the document to extract their URL.",
)
webhook_url: Optional[str] = Field(
default=None,
description="A URL that needs to be called at the end of the parsing job.",
Expand Down Expand Up @@ -270,7 +269,7 @@ async def _create_job(
"take_screenshot": self.take_screenshot,
"disable_ocr": self.disable_ocr,
"is_formatting_instruction": self.is_formatting_instruction,
# "annotate_links": self.annotate_links,
"annotate_links": self.annotate_links,
}

# only send page separator to server if it is not None
Expand Down

0 comments on commit b141f9a

Please sign in to comment.