docs LIST batches

This commit is contained in:
Ishaan Jaff 2024-07-30 09:49:11 -07:00
parent 563d59a305
commit 1e1bce4594

View file

@ -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" \
```
</TabItem>
<TabItem value="sdk" label="SDK">
@ -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)
```
</TabItem>
</Tabs>