The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs LIST batches
Ishaan Jaff1e1bce45947b
diff --git a/docs/my-website/docs/batches.md b/docs/my-website/docs/batches.mdindex 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" \+```+</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>