mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
test(spend): expect token billing for Vertex image edits with usage (#51109)
Co-authored-by: mateo <277851410+mateo-berri@users.noreply.github.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
461b56b14b
commit
cb024047ac
1 changed files with 3 additions and 3 deletions
|
|
@ -242,7 +242,7 @@ def test_image_generation_bills_the_deployment_location(
|
|||
[
|
||||
pytest.param("global", False, _GLOBAL_IMAGE_COST, id="global-edit"),
|
||||
pytest.param(_REGION, False, _REGIONAL_IMAGE_COST, id="regional-edit"),
|
||||
pytest.param(_REGION, True, _REGIONAL_IMAGE_COST, id="regional-edit-usage-is-per-image"),
|
||||
pytest.param(_REGION, True, _REGIONAL_TOKEN_COST, id="regional-edit-usage-bills-tokens"),
|
||||
],
|
||||
)
|
||||
def test_image_edit_bills_the_deployment_location(
|
||||
|
|
@ -489,8 +489,8 @@ def _burst_calls(global_model: str, regional_model: str) -> tuple[_Call, ...]:
|
|||
kinds: Final = (
|
||||
("/v1/images/generations", global_model, _GLOBAL_TOKEN_COST),
|
||||
("/v1/images/generations", regional_model, _REGIONAL_TOKEN_COST),
|
||||
("/v1/images/edits", global_model, _GLOBAL_IMAGE_COST),
|
||||
("/v1/images/edits", regional_model, _REGIONAL_IMAGE_COST),
|
||||
("/v1/images/edits", global_model, _GLOBAL_TOKEN_COST),
|
||||
("/v1/images/edits", regional_model, _REGIONAL_TOKEN_COST),
|
||||
)
|
||||
return tuple(
|
||||
_Call(call_id=uuid.uuid4().hex, route=route, model=model, expected=expected)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue