Azure / Azure/azure-sdk-for-python
Incorrect syntax
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
### Type of issue
Typo
### Description
```python
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
```python
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**
Contributor guide
Assessment
This issue has not been assessed yet.