(docs) add doc string for aembedding

This commit is contained in:
ishaan-jaff 2023-10-30 13:59:56 -07:00
parent 370b6be52a
commit 43b8387334

View file

@ -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