Hi Chen Chen,
Welcome to the Microsoft Q&A forum! Thanks for your question. 😊
The issue you're facing with the Azure OpenAI Batch API not processing all files in a batch without any error notifications could be due to several reasons. Can you please confirm if you have followed these steps below so that I could get some clarity on the issue or else
Check Batch Job Status for Each File
- The batch API processes files asynchronously. Ensure you're checking the status of each file in the batch using the
/batches/{batch_id}
endpoint. - Use the following API call to check batch details:
GET https://{your-resource-name}.openai.azure.com/openai/deployments/{deployment_id}/batches/{batch_id}?api-version=2024-11-30
- If some files are missing, look at the processing status to identify if they were skipped or failed silently.
Batch Size Limitations
- Ensure that your batch request does not exceed API limits.
- Try submitting smaller batches and verify if the issue persists.
Enable Logging for Debugging
- If possible, enable logging in your Azure OpenAI service to capture any silent failures.
- Navigate to Azure Portal > OpenAI Resource > Monitoring > Logs to check for potential warnings or errors.
Check for Service Health Issues
- Azure services may sometimes experience disruptions. You can check for service status and known issues here:
Validate API Version & Retry Mechanism
- Ensure you're using the latest API version (
2024-11-30
or later). - Implement a retry mechanism in case some files fail due to transient issues.
References for Further Troubleshooting
Azure OpenAI Batch API Documentation
Azure Machine Learning Known Issues
As part of the next steps, please try these steps and check if the issue persists. If you need further assistance, feel free to comment below, and I’d be happy to help!
Regards,
Chakravarthi Rangarajan Bhargavi
- Please accept the answer and vote 'Yes' if you found it helpful to support the community. Thanks a lot!