@Muhammad Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
.
Please follow the below the below action plan:
Plan 1:
Public preview version 2024-07-31-preview is currently only available in the following Azure regions. Ensure that your resource is in below region:
- East US
- West US2
- West Europe
- North Central US
.
Plan 2:
Ensure that you are using DocumentIntelligenceClient Python library and not form recognizer.
Please run the below command to install the right version of the Python library:
pip install azure-ai-documentintelligence==1.0.0b4
.
Plan 3:
Please update your sample code to the below and modify the model:
.
Hope this helps.