Azure OpenAI File Object has deprecated status and status_details fields but no suitable replacement
We are currently using the Azure OpenAI APIs to upload files to Azure and posting a new batch using the newly uploaded file. There are cases in which on posting the batch, we'd be getting something like this error: The input file 'file-28009a6785e5439a8049db25ff33c462' is in 'pending' state. Only files with status 'Processed' are accepted for batch inferencing. Please check the file status and try again
This is happening because the file we just uploaded is still not ready and is still being processed. Therefore, prior to posting the batch, we're fetching the file by ID to check on its status. However, as shown in this documentation: https://platform.openai.com/docs/api-reference/files/object it seems the both status fields are currently deprecated and should not be used anymore. I cannot find any suitable alternative to relying on them and we're therefore stuck relying on deprecated fields to avoid errors.
What should we be doing in this case?
Thanks,
David