docs(managed_batches.md): clarify cancel batches is coming soon

This commit is contained in:
Krrish Dholakia 2025-05-10 16:29:44 -07:00
parent 7934610f63
commit 10ce3b478d

View file

@ -142,7 +142,15 @@ file_response = client.files.content(file_id)
print(file_response.text)
```
### 5. Cancel a batch
### 5. List batches
```python showLineNumbers title="create_batch.py"
...
client.batches.list(limit=10, extra_body={"target_model_names": "gpt-4o-batch"})
```
### [Coming Soon] Cancel a batch
```python showLineNumbers title="create_batch.py"
...
@ -150,13 +158,6 @@ print(file_response.text)
client.batches.cancel(batch_id)
```
### 6. List batches
```python showLineNumbers title="create_batch.py"
...
client.batches.list(limit=10, extra_body={"target_model_names": "gpt-4o-batch"})
```
## E2E Example