mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
15 lines
No EOL
390 B
Markdown
15 lines
No EOL
390 B
Markdown
# litellm.aembedding()
|
|
|
|
LiteLLM provides an asynchronous version of the `embedding` function called `aembedding`
|
|
### Usage
|
|
```python
|
|
from litellm import aembedding
|
|
import asyncio
|
|
|
|
async def test_get_response():
|
|
response = await aembedding('text-embedding-ada-002', input=["good morning from litellm"])
|
|
return response
|
|
|
|
response = asyncio.run(test_get_response())
|
|
print(response)
|
|
``` |