mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
docs LIST batches
This commit is contained in:
parent
563d59a305
commit
1e1bce4594
1 changed files with 18 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue