mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
test_async_embedding_openai
This commit is contained in:
parent
bb4b7fdd00
commit
81282d14b5
1 changed files with 3 additions and 1 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue