Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async def process_file(client: DocumentIntelligenceClient, record_id: str, file:

try:
poller = await client.begin_analyze_document(
"prebuilt-layout", analyze_request=file_data, content_type="application/octet-stream", output_content_format=mode, features=["ocrHighResolution"]
"prebuilt-layout", body=file_data, content_type="application/octet-stream", output_content_format=mode, features=["ocrHighResolution"]
)
result = await poller.result()
return {
Expand All @@ -257,7 +257,7 @@ async def process_file(client: DocumentIntelligenceClient, record_id: str, file:
async def process_sas_uri(client: DocumentIntelligenceClient, record_id: str, sas_uri: str, mode: str):
try:
poller = await client.begin_analyze_document(
"prebuilt-layout", analyze_request=AnalyzeDocumentRequest(url_source=sas_uri), output_content_format=mode, features=["ocrHighResolution"]
"prebuilt-layout", body=AnalyzeDocumentRequest(url_source=sas_uri), output_content_format=mode, features=["ocrHighResolution"]
)
result = await poller.result()
return {
Expand Down