File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
articles/ai-services/openai/includes/batch Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -401,12 +401,27 @@ client.batches.cancel("batch_abc123") # set to your batch_id for the job you wan
401
401
402
402
### List batch
403
403
404
- List all batch jobs for a particular Azure OpenAI resource.
404
+ List batch jobs for a particular Azure OpenAI resource.
405
405
406
406
``` python
407
407
client.batches.list()
408
408
```
409
409
410
+ List methods in the Python library are paginated.
411
+
412
+ To list all jobs:
413
+
414
+ ``` python
415
+ all_jobs = []
416
+ # Automatically fetches more pages as needed.
417
+ for job in client.batches.list(
418
+ limit = 20 ,
419
+ ):
420
+ # Do something with job here
421
+ all_jobs.append(job)
422
+ print (all_jobs)
423
+ ```
424
+
410
425
### List batch (Preview)
411
426
412
427
Use the REST API to list all batch jobs with additional sorting/filtering options.
You can’t perform that action at this time.
0 commit comments