Azure OpenAI File Object has deprecated status and status_details fields but no suitable replacement

David Captur 40 Reputation points
2025-03-10T07:03:41.57+00:00

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

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,223 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.