mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(docs) add doc string for aembedding
This commit is contained in:
parent
a33bab26f3
commit
fed0fec658
1 changed files with 10 additions and 0 deletions
|
@ -1469,6 +1469,16 @@ def batch_completion_models_all_responses(*args, **kwargs):
|
||||||
### EMBEDDING ENDPOINTS ####################
|
### EMBEDDING ENDPOINTS ####################
|
||||||
|
|
||||||
async def aembedding(*args, **kwargs):
|
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()
|
loop = asyncio.get_event_loop()
|
||||||
|
|
||||||
# Use a partial function to pass your keyword arguments
|
# Use a partial function to pass your keyword arguments
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue