Skip to content

Incorrect syntax #41934

@Vineet314

Description

@Vineet314

Type of issue

Typo

Description

with open(path_to_sample_documents, "rb") as f:
    poller = document_intelligence_client.begin_analyze_document(
        model_id=model_id, analyze_request=f, content_type="application/octet-stream"
    )

Should be

with open(path_to_sample_documents, "rb") as f:
    poller = document_intelligence_client.begin_analyze_document(
        model_id=model_id, body=f, content_type="application/octet-stream"
) 
#latest version of SDK requires body param instead of analyze_request

Page URL

https://learn.microsoft.com/en-us/python/api/overview/azure/ai-documentintelligence-readme?view=azure-python-preview&preserve-view=true#using-prebuilt-models

Content source URL

https://github.com/MicrosoftDocs/azure-docs-sdk-python/blob/main/docs-ref-services/preview/ai-documentintelligence-readme.md

Document Version Independent Id

be033072-fc7b-832b-eb4e-475685478e43

Platform Id

dca95708-121d-d4c4-e911-f8f7fdbfae80

Article author

@azure-sdk

Metadata

  • ID: e9ce343e-062b-55bc-fa32-caaf3a3242c8
  • PlatformId: dca95708-121d-d4c4-e911-f8f7fdbfae80
  • Service: documentintelligence

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Document Intelligencecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions