Azure / Azure/azure-sdk-for-python

Incorrect syntax

Aperta
#41,934 2 commenti 0 reazioni 1 assegnatario Rivendicata da @bojunehsu Vedi su GitHub
Client customer-reported Document Intelligence needs-team-attention question
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

### 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**

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.