From 1e1bce45947beb471d832179bff7b784f288dad9 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 30 Jul 2024 09:49:11 -0700 Subject: [PATCH] docs LIST batches --- docs/my-website/docs/batches.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/my-website/docs/batches.md b/docs/my-website/docs/batches.md index 2199e318fdd..101d1e505b2 100644 --- a/docs/my-website/docs/batches.md +++ b/docs/my-website/docs/batches.md @@ -12,6 +12,8 @@ Covers Batches, Files - Create Batch Request +- List Batches + - Retrieve the Specific Batch and File Content @@ -56,6 +58,15 @@ curl http://localhost:4000/v1/batches/batch_abc123 \ -H "Content-Type: application/json" \ ``` + +**List Batches** + +```bash +curl http://localhost:4000/v1/batches \ + -H "Authorization: Bearer sk-1234" \ + -H "Content-Type: application/json" \ +``` + @@ -116,6 +127,13 @@ file_content = await litellm.afile_content( print("file content = ", file_content) ``` +**List Batches** + +```python +list_batches_response = litellm.list_batches(custom_llm_provider="openai", limit=2) +print("list_batches_response=", list_batches_response) +``` +