mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
Update test_llm_cost_calc_utils.py
This commit is contained in:
parent
8297eb89ad
commit
2fa8f3dfff
1 changed files with 4 additions and 4 deletions
|
|
@ -1456,12 +1456,12 @@ def test_character_count_billing_does_not_fill_prompt_token_gap():
|
|||
)
|
||||
|
||||
prompt_cost, completion_cost = generic_cost_per_token(
|
||||
model="gemini-2.0-pro",
|
||||
model="gemini-2.0-flash-001",
|
||||
usage=usage,
|
||||
custom_llm_provider="vertex_ai",
|
||||
)
|
||||
|
||||
model_info = litellm.model_cost["gemini-2.0-pro"]
|
||||
model_info = litellm.model_cost["gemini-2.0-flash-001"]
|
||||
expected_prompt_cost = (
|
||||
100 * model_info["input_cost_per_token"]
|
||||
+ 1000 * model_info.get("input_cost_per_character", 0)
|
||||
|
|
@ -1498,12 +1498,12 @@ def test_video_length_billing_does_not_fill_prompt_token_gap():
|
|||
)
|
||||
|
||||
prompt_cost, completion_cost = generic_cost_per_token(
|
||||
model="gemini-2.0-pro",
|
||||
model="gemini-2.0-flash-001",
|
||||
usage=usage,
|
||||
custom_llm_provider="vertex_ai",
|
||||
)
|
||||
|
||||
model_info = litellm.model_cost["gemini-2.0-pro"]
|
||||
model_info = litellm.model_cost["gemini-2.0-flash-001"]
|
||||
expected_prompt_cost = (
|
||||
50 * model_info.get("input_cost_per_token", 0)
|
||||
+ 12.0 * model_info.get("input_cost_per_video_per_second", 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue