mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
test_async_custom_handler_embedding_optional_param
This commit is contained in:
parent
1bb7ad4f69
commit
f7213bacfe
1 changed files with 1 additions and 1 deletions
|
|
@ -392,7 +392,7 @@ async def test_async_custom_handler_embedding_optional_param():
|
|||
customHandler_optional_params = MyCustomHandler()
|
||||
litellm.callbacks = [customHandler_optional_params]
|
||||
response = await litellm.aembedding(
|
||||
model="azure/azure-embedding-model", input=["hello world"], user="John"
|
||||
model="text-embedding-ada-002", input=["hello world"], user="John"
|
||||
)
|
||||
await asyncio.sleep(1) # success callback is async
|
||||
assert customHandler_optional_params.user == "John"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue