mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
test: assert the vertex batch output rate is a real discount
This commit is contained in:
parent
3a2728a42f
commit
df0d8ff15e
1 changed files with 1 additions and 0 deletions
|
|
@ -895,6 +895,7 @@ async def test_handle_completed_vertex_batch_computes_cost_usage_and_models(monk
|
|||
batch_output = pricing["output_cost_per_token_batches"]
|
||||
|
||||
assert batch_input < pricing["input_cost_per_token"]
|
||||
assert batch_output < pricing["output_cost_per_token"]
|
||||
assert cost > 0
|
||||
assert cost == pytest.approx(30 * batch_input + 15 * batch_output)
|
||||
assert (usage.prompt_tokens, usage.completion_tokens, usage.total_tokens) == (30, 15, 45)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue