From fed0fec6586bb830bfd56b6ea0bb01e00c2e866e Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 30 Oct 2023 13:59:56 -0700 Subject: [PATCH] (docs) add doc string for aembedding --- litellm/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/litellm/main.py b/litellm/main.py index da53ede620..52e2297607 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -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