You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"In the batch_completion method, you provide a list of messages where each sub-list of messages is passed to litellm.completion(), allowing you to process multiple prompts efficiently in a single API call."
Copy file name to clipboardExpand all lines: docs/my-website/docs/completion/batching.md
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Batching Completion Calls - batch_completion
1
+
# Batching Completion() Calls
2
2
3
-
Batch Completion allows you to pass a batch of completion() requests to process multiple `messages` in a single API call.
3
+
In the batch_completion method, you provide a list of `messages` where each sub-list of messages is passed to `litellm.completion()`, allowing you to process multiple prompts efficiently in a single API call.
4
4
5
5
## Example Code
6
6
```python
@@ -28,7 +28,4 @@ responses = batch_completion(
28
28
]
29
29
]
30
30
)
31
-
```
32
-
33
-
34
-
In the batch_completion method, you provide a list of `messages` where each sub-list of messages is passed to `litellm.completion()`, allowing you to process multiple prompts efficiently in a single API call.
0 commit comments