mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
style(mavvrik): apply Black formatting to __init__.py
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6b317c5a81
commit
5c10ef4ab8
1 changed files with 2 additions and 1 deletions
|
|
@ -411,7 +411,8 @@ class Service:
|
|||
|
||||
total_cost = float(df["spend"].sum() or 0.0) if "spend" in df.columns else 0.0
|
||||
total_tokens = (
|
||||
int(df["prompt_tokens"].sum() or 0) + int(df["completion_tokens"].sum() or 0)
|
||||
int(df["prompt_tokens"].sum() or 0)
|
||||
+ int(df["completion_tokens"].sum() or 0)
|
||||
if "prompt_tokens" in df.columns and "completion_tokens" in df.columns
|
||||
else 0
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue