From 10ce3b478d1c59d0d381fabd8463663726d2bd1f Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 10 May 2025 16:29:44 -0700 Subject: [PATCH] docs(managed_batches.md): clarify cancel batches is coming soon --- docs/my-website/docs/proxy/managed_batches.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/my-website/docs/proxy/managed_batches.md b/docs/my-website/docs/proxy/managed_batches.md index eaf2b2eb7eb..1b9b71c1779 100644 --- a/docs/my-website/docs/proxy/managed_batches.md +++ b/docs/my-website/docs/proxy/managed_batches.md @@ -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