mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(docs) add doc string for aembedding
This commit is contained in:
parent
370b6be52a
commit
43b8387334
1 changed files with 10 additions and 0 deletions
|
@ -1469,6 +1469,16 @@ def batch_completion_models_all_responses(*args, **kwargs):
|
|||
### EMBEDDING ENDPOINTS ####################
|
||||
|
||||
async def aembedding(*args, **kwargs):
|
||||
"""
|
||||
Asynchronously calls the `embedding` function with the given arguments and keyword arguments.
|
||||
|
||||
Parameters:
|
||||
- `args` (tuple): Positional arguments to be passed to the `embedding` function.
|
||||
- `kwargs` (dict): Keyword arguments to be passed to the `embedding` function.
|
||||
|
||||
Returns:
|
||||
- `response` (Any): The response returned by the `embedding` function.
|
||||
"""
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
# Use a partial function to pass your keyword arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue