Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.63k stars 2.84k forks source link

TypeError: DocumentAnalysisClient.begin_analyze_document() missing 1 required positional argument: 'document' #38622

Open xinyaohuu opened 1 day ago

xinyaohuu commented 1 day ago

I have issue convert from pdf to markdown using azure ai document I followed similar issues here but still getting errors for both options : https://github.com/Azure/azure-sdk-for-python/issues/36434 Image Error: TypeError: DocumentAnalysisClient.begin_analyze_document() missing 1 required positional argument: 'document'

It only works when I only have 2 parameters: model_id = "prebuild-layout" and document = f, but the result will be raw text instead of markdown.

I tried many other parameters(see my comment parameters, none of them work)

github-actions[bot] commented 1 day ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

xinyaohuu commented 1 day ago

I also tried url approach:Image This code works, but the output is HTML not markdown