From ef7acd73be40f19dd46188cb132e2684f9c8ed5a Mon Sep 17 00:00:00 2001 From: Praveen11558 <44603409+Praveen11558@users.noreply.github.com> Date: Mon, 23 Mar 2026 23:37:39 +0530 Subject: [PATCH] (fix): token_count calculation during inline data sent during multimodal inputs Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py b/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py index 3101e501a3d..0496aac1d56 100644 --- a/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py +++ b/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py @@ -1435,6 +1435,7 @@ def test_image_count_billing_does_not_fill_prompt_token_gap(): ) assert completion_cost == pytest.approx(expected_completion_cost) + def test_character_count_billing_does_not_fill_prompt_token_gap(): """ Regression: when character_count pricing is active, gaps between