Update test_llm_cost_calc_utils.py

This commit is contained in:
Praveen11558 2026-03-23 15:54:31 +05:30 • committed by GitHub
parent 36b0aff118
commit 73c6a70af2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1464,7 +1464,7 @@ def test_character_count_billing_does_not_fill_prompt_token_gap():
model_info = litellm.model_cost["gemini-2.5-pro"]
expected_prompt_cost = (
100 * model_info["input_cost_per_token"]
+ 1000 * model_info["input_cost_per_character"]
+ 1000 * model_info.get("input_cost_per_character", 0)
)
expected_completion_cost = 20 * model_info["output_cost_per_token"]
@ -1506,7 +1506,7 @@ def test_video_length_billing_does_not_fill_prompt_token_gap():
model_info = litellm.model_cost["gemini-2.5-pro"]
expected_prompt_cost = (
50 * model_info["input_cost_per_token"]
+ 12.0 * model_info["input_cost_per_video_per_second"]
+ 12.0 * model_info.get("input_cost_per_video_per_second", 0)
)
expected_completion_cost = 10 * model_info["output_cost_per_token"]