(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>
This commit is contained in:
Praveen11558 2026-03-23 23:37:39 +05:30 • committed by GitHub
parent 144fc20358
commit ef7acd73be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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