mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-11 16:26:07 +00:00
test_async_embedding_openai
This commit is contained in:
@@ -774,7 +774,9 @@ async def test_async_embedding_openai():
|
||||
customHandler_failure = CompletionCustomHandler()
|
||||
litellm.callbacks = [customHandler_success]
|
||||
response = await litellm.aembedding(
|
||||
model="azure/text-embedding-ada-002",
|
||||
model="text-embedding-ada-002",
|
||||
input=["good morning from litellm"],
|
||||
)
|
||||
await asyncio.sleep(1)
|
||||
print(f"customHandler_success.errors: {customHandler_success.errors}")
|
||||
print(f"customHandler_success.states: {customHandler_success.states}")
|
||||
|
||||
Reference in New Issue
Block a user