litellm.aembedding()
LiteLLM 提供了嵌入(embedding)函数的异步版本,称为 aembedding
用法
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)