Skip to content

Commit cff7a86

Browse files
committed
update
1 parent 39016cc commit cff7a86

File tree

2 files changed

+5
-29
lines changed

2 files changed

+5
-29
lines changed

articles/ai-services/openai/how-to/batch.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: nitinme
66
ms.service: azure-ai-openai
77
ms.custom:
88
ms.topic: how-to
9-
ms.date: 10/02/2024
9+
ms.date: 10/11/2024
1010
author: mrbullwinkle
1111
ms.author: mbullwin
1212
recommendations: false
@@ -65,9 +65,9 @@ The following models support global batch:
6565

6666
Refer to the [models page](../concepts/models.md) for the most up-to-date information on regions/models where global batch is currently supported.
6767

68-
### API Versions
68+
### API support
6969

70-
- `2024-07-01-preview`
70+
API support was first added with `2024-07-01-preview`.
7171

7272
### Not supported
7373

@@ -224,8 +224,7 @@ When a job failure occurs, you'll find details about the failure in the `errors`
224224

225225
### Known issues
226226

227-
- Resources deployed with Azure CLI won't work out-of-box with Azure OpenAI global batch. This is due to an issue where resources deployed using this method have endpoint subdomains that don't follow the `https://your-resource-name.openai.azure.com` pattern. A workaround for this issue is to deploy a new Azure OpenAI resource using one of the other common deployment methods which will properly handle the subdomain setup as part of the deployment process.
228-
227+
- Resources deployed with Azure CLI won't work out-of-box with Azure OpenAI global batch. This is due to an issue where resources deployed using this method have endpoint subdomains that don't follow the `https://your-resource-name.openai.azure.com` pattern. A workaround for this issue is to deploy a new Azure OpenAI resource using one of the other common deployment methods which will properly handle the subdomain setup as part of the deployment process.
229228

230229
## See also
231230

articles/ai-services/openai/includes/batch/batch-python.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -104,34 +104,11 @@ file_id = file.id
104104
"filename": "test.jsonl",
105105
"object": "file",
106106
"purpose": "batch",
107-
"status": "pending",
107+
"status": null,
108108
"status_details": null
109109
}
110110
```
111111

112-
## Track file upload status
113-
114-
Depending on the size of your upload file it might take some time before it's fully uploaded and processed. To check on your file upload status run:
115-
116-
```python
117-
# Wait until the uploaded file is in processed state
118-
import time
119-
import datetime
120-
121-
status = "pending"
122-
while status != "processed":
123-
time.sleep(15)
124-
file_response = client.files.retrieve(file_id)
125-
status = file_response.status
126-
print(f"{datetime.datetime.now()} File Id: {file_id}, Status: {status}")
127-
```
128-
129-
**Output:**
130-
131-
```output
132-
2024-07-31 21:42:53.663655 File Id: file-9f3a81d899b4442f98b640e4bc3535dd, Status: processed
133-
```
134-
135112
## Create batch job
136113

137114
Once your file has uploaded successfully by reaching a status of `processed` you can submit the file for batch processing.

0 commit comments

Comments
 (0)