I have created a custom model with the ID 'DigiDev_Invoice_v2' in Form Recognizer Studio (v3).
Both the training and testing of this model were successfully performed within the studio, and the status is shown as 'succeeded' on the model screen.
However, when attempting to analyze a different file using the Python API, I encountered the following error message.
{"code": "ModelNotFound", "message": "The requested model was not found."}
Upon checking the project settings, I confirmed that the endpoint and API key values are identical to those specified in my Python code.
To further investigate this issue, I used the 'document_model_admin_client.list_document_models()' statement to retrieve a list of models available for the same endpoint and API key combination.
Surprisingly, the model 'DigiDev_Invoice_v2' was not listed.
I currently have two Form Recognizer resources set up. I also tried checking for the model in the other resource, but it was not found there either.
Given these circumstances, I am perplexed as to why the custom model 'DigiDev_Invoice_v2' works perfectly within the Form Recognizer Studio, but seems to be absent when accessed via the Python API.
Could anyone please provide insights on how to resolve this discrepancy?