mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
style(cost): apply ruff formatting to modality guards
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
0c91d9157c
commit
6c9fe65608
1 changed files with 2 additions and 4 deletions
|
|
@ -957,8 +957,7 @@ def _calculate_input_cost(
|
|||
|
||||
### AUDIO COST
|
||||
if prompt_tokens_details["audio_tokens"] and not (
|
||||
prompt_tokens_details["audio_length_seconds"]
|
||||
and model_info.get("input_cost_per_audio_per_second") is not None
|
||||
prompt_tokens_details["audio_length_seconds"] and model_info.get("input_cost_per_audio_per_second") is not None
|
||||
):
|
||||
audio_cost_key: Final = _get_service_tier_cost_key("input_cost_per_audio_token", service_tier)
|
||||
prompt_cost += calculate_cost_component(model_info, audio_cost_key, prompt_tokens_details["audio_tokens"])
|
||||
|
|
@ -976,8 +975,7 @@ def _calculate_input_cost(
|
|||
|
||||
### VIDEO TOKEN COST
|
||||
if prompt_tokens_details["video_tokens"] and not (
|
||||
prompt_tokens_details["video_length_seconds"]
|
||||
and model_info.get("input_cost_per_video_per_second") is not None
|
||||
prompt_tokens_details["video_length_seconds"] and model_info.get("input_cost_per_video_per_second") is not None
|
||||
):
|
||||
video_token_cost_key = "input_cost_per_video_token"
|
||||
if model_info.get(video_token_cost_key) is None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue