Unable to use new API for Document Intelligence

Ritesh Panditi 10 Reputation points
2024-04-02T01:11:14.2+00:00

I am trying out the code in this link with a valid key and endpoint Layout model sample code, but I am getting an error message. I am unable to understand what is the reason for this error as I am using the sample document in the sample code to test it out. When I try the same with a previous version as shown in Another sample code but with GA API
it seems to work fine. But the features I want to use are available in the new preview API. Please let me know how I can resolve this error.

Inner error: {

"code": "ParameterMissing",

"message": "The parameter urlSource or base64Source is required."

}

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,403 questions
{count} votes