mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-16 04:29:31 +00:00
test(batches): use the public hook class names main now exports
This commit is contained in:
parent
0632fddce4
commit
b57e4f06e8
2 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ async def test_a_batch_polled_within_every_budget_window_is_never_charged_again(
|
|||
async def test_batch_line_item_events_do_not_charge_the_model_budget():
|
||||
"""Line events carry batch_parent_id; the aggregate aretrieve_batch event is
|
||||
the one that already bills the batch, so children must not double-charge."""
|
||||
limiter: Final = _PROXY_VirtualKeyModelMaxBudgetLimiter(dual_cache=DualCache())
|
||||
limiter: Final = PROXY_VirtualKeyModelMaxBudgetLimiter(dual_cache=DualCache())
|
||||
|
||||
line_event = _event("acompletion", CHAT_COST)
|
||||
line_event["litellm_params"]["batch_parent_id"] = "batch_first"
|
||||
|
|
|
|||
|
|
@ -2774,7 +2774,7 @@ async def test_async_post_call_failure_hook_persists_no_raw_model_on_an_unknown_
|
|||
|
||||
@pytest.mark.asyncio
|
||||
async def test_batch_line_item_event_never_updates_spend(): # test-quality-ok: the observable contract is exactly that the spend path is never invoked
|
||||
logger: Final = _ProxyDBLogger()
|
||||
logger: Final = ProxyDBLogger()
|
||||
kwargs: Final = {
|
||||
"litellm_params": {"batch_parent_id": "batch_1", "metadata": {}},
|
||||
"model": "gpt-4o",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue