mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Update litellm/litellm_core_utils/llm_cost_calc/utils.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
d60f5bff56
commit
6c6b26f35d
1 changed files with 3 additions and 1 deletions
|
|
@ -677,7 +677,9 @@ def generic_cost_per_token( # noqa: PLR0915
|
|||
# without being included in the per-token detail fields. When any of these are
|
||||
# active, a gap between accounted_tokens and prompt_tokens is expected and must
|
||||
# NOT be filled:
|
||||
# - character_count / video_length_seconds: replace per-token billing entirely
|
||||
# - character_count / video_length_seconds: the token gap between accounted_tokens
|
||||
# and prompt_tokens is already covered by character/video-second billing; filling
|
||||
# the gap into text_tokens would double-bill that content at the text rate.
|
||||
# - image_count: additive flat-rate billing; the image-URL tokens are already
|
||||
# reflected in prompt_tokens and billed separately via input_cost_per_image
|
||||
has_non_token_alternative_billing = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue