Hello @Padma Dighe , Thanks for using Microsoft Q&A Platform.
The issue is with the request URL. For API version>=2023-10-31-preview or latest
the formrecognizer
client is now migrated to documentintelligence
.
If you observe for API version 2023-10-31-previewor
2024-02-29-preview the request URL has documentintelligence
as client.
Request URL https://{endpoint}/documentintelligence/documentModels/{modelId}:analyze?api-version=2024-02-29-preview[&pages][&locale][&stringIndexType][&features][&queryFields]
Request URL https://{endpoint}/documentintelligence/documentModels/{modelId}:analyze?api-version=2023-10-31-preview[&pages][&locale][&stringIndexType][&features][&queryFields]
However, for API version 2023-07-31, Request URL has formrecognizer as client, https://westeurope.api.cognitive.microsoft.com/formrecognizer/documentModels/prebuilt-layout:analyze?api-version=2023-07-31
Please visit this guide for migrating to azure-ai-documentintelligence
from azure-ai-formrecognizer:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/documentintelligence/azure-ai-documentintelligence/MIGRATION_GUIDE.md
Correct your request here is the sample you can try: https://westeurope.api.cognitive.microsoft.com/documentintelligence/documentModels/prebuilt-read:analyze?api-version=2024-02-29-preview
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.