An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hi Maxwell, Joanne,
The current behavior of file uploads with the Azure OpenAI Responses API can be a bit confusing, especially if you’re coming from Open Ai’s public platform.
Here’s how it works today, and what to check.
1. Supported file types For the Responses API in Azure OpenAI, the only documented supported file type for direct file input is PDF. Specifically, models with vision support can accept PDFs, where Azure OpenAI extracts text and page images internally. Other file types (like DOCX, PPTX, XLSX, CSV, etc.) are not documented as supported for Responses API file input at this time, even if they are supported on OpenAI’s public platform.
If you try to upload non‑PDF files, you may see inconsistent or unsupported behavior.
2. Where uploaded files are stored When you upload a file using the Files API for use with Responses (purpose set to assistants), Azure OpenAI returns a file_id.
The platform does not expose the underlying storage location (for example, you can’t browse or mount it as Azure Blob Storage). Access to the file is only via the API using that file_id. There’s no supported way to directly read or manage the backing storage yourself.
3. How to access the uploaded file You don’t “open” the file directly. Instead:
- Upload the PDF
- Capture the returned
file_id - Reference that
file_idin your Responses API call
That’s the only supported access pattern today.
4. Retention and deletion The documentation does not currently define a fixed retention period for uploaded files in the Responses API. The file object includes an expires_at field, but there’s no published guarantee that it follows the same 30‑day lifecycle as conversations. In short, the exact retention window is not documented yet.
If lifecycle control is critical, it’s safest to:
- Treat uploaded files as temporary
- Re‑upload when needed
- Avoid assuming long‑term persistence
5. Troubleshooting tips If things aren’t working as expected:
- Confirm the file is a PDF
- Ensure the upload
purposeis set toassistants - Verify the model you’re using supports vision/PDF input
- Make sure you’re passing the returned
file_idcorrectly in the Responses API request
Hope this helps clarify the current capabilities and limitations. Do let me know if you have any further queries.
Thankyou!