Setting the file. One moment.
Subchapter 32.7
references/large-file-uploads.mdMarkdown927 BView on GitHub
The standard client.files.create() silently fails on JSONL files >~150MB (Azure returns 500 during job execution). Use the chunked Uploads API:
upload = client.uploads.create(filename="data.jsonl",
Scripts
scripts/11 filesImportant: Requires openai.AzureOpenAI() client, NOT openai.OpenAI() with /v1/ URL. The project endpoint returns 404 for upload operations.
| File Size | Method |
|---|---|
| < 100MB | Standard files.create() |
| 100MB–5GB | Chunked Uploads API |
| > 5GB | Split dataset |