Skip to content

Commit

Permalink
fix add doc string for abatch_completion_one_model_multiple_requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed May 21, 2024
1 parent 5be966d commit 92a4df0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions litellm/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,14 @@ async def abatch_completion_one_model_multiple_requests(
model (List[str]): model group
messages (List[List[Dict[str, str]]]): list of messages. Each element in the list is one request
**kwargs: additional kwargs
Usage:
response = await self.abatch_completion_one_model_multiple_requests(
model="gpt-3.5-turbo",
messages=[
[{"role": "user", "content": "hello"}, {"role": "user", "content": "tell me something funny"}],
[{"role": "user", "content": "hello good mornign"}],
]
)
"""

async def _async_completion_no_exceptions(
Expand Down

0 comments on commit 92a4df0

Please sign in to comment.