mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
test(test_router_fallbacks.py): fix test
This commit is contained in:
parent
40e19a838c
commit
cdec7a414f
4 changed files with 15 additions and 10 deletions
|
@ -437,8 +437,9 @@ async def test_cost_tracking_with_caching():
|
|||
max_tokens=40,
|
||||
temperature=0.2,
|
||||
caching=True,
|
||||
mock_response="Hey, i'm doing well!",
|
||||
)
|
||||
await asyncio.sleep(1) # success callback is async
|
||||
await asyncio.sleep(3) # success callback is async
|
||||
response_cost = customHandler_optional_params.response_cost
|
||||
assert response_cost > 0
|
||||
response2 = await litellm.acompletion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue