Skip to content

Commit

Permalink
[chore]: Fix Keyword argument
Browse files Browse the repository at this point in the history
  • Loading branch information
keenborder786 committed Dec 29, 2024
1 parent edbe7d5 commit e864e80
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def lazy_parse(self, blob: Blob) -> Iterator[Document]:
with blob.as_bytes_io() as file_obj:
poller = self.client.begin_analyze_document(
self.api_model,
file_obj,
body=file_obj,
content_type="application/octet-stream",
output_content_format="markdown" if self.mode == "markdown" else "text",
)
Expand All @@ -97,8 +97,7 @@ def parse_url(self, url: str) -> Iterator[Document]:

poller = self.client.begin_analyze_document(
self.api_model,
AnalyzeDocumentRequest(url_source=url),
# content_type="application/octet-stream",
body=AnalyzeDocumentRequest(url_source=url),
output_content_format="markdown" if self.mode == "markdown" else "text",
)
result = poller.result()
Expand All @@ -115,8 +114,7 @@ def parse_bytes(self, bytes_source: bytes) -> Iterator[Document]:

poller = self.client.begin_analyze_document(
self.api_model,
analyze_request=AnalyzeDocumentRequest(bytes_source=bytes_source),
# content_type="application/octet-stream",
body=AnalyzeDocumentRequest(bytes_source=bytes_source),
output_content_format="markdown" if self.mode == "markdown" else "text",
)
result = poller.result()
Expand Down

0 comments on commit e864e80

Please sign in to comment.