fix: show resolved dates in cost report header
Previously showed raw input like "yesterday to today". Now shows the resolved YYYY-MM-DD dates for clarity.
This commit is contained in:
1 parent
0fd8fcb742
commit
d31a5cbbe3
1 file changed
+1
-1
@@ -305,7 +305,7 @@ class Tools:
|
|||||||
|
|
||||||
# Assemble report
|
# Assemble report
|
||||||
lines = []
|
lines = []
|
||||||
lines.append(f"LiteLLM Cost Report: {start_date} to {end_date}")
|
lines.append(f"LiteLLM Cost Report: {resolved_start} to {resolved_end}")
|
||||||
lines.append("=" * 60)
|
lines.append("=" * 60)
|
||||||
lines.append(f"Total Spend: ${total_spend:.2f}")
|
lines.append(f"Total Spend: ${total_spend:.2f}")
|
||||||
lines.append(f"Total Tokens: {total_tokens:,} ({total_prompt:,} prompt + {total_completion:,} completion)")
|
lines.append(f"Total Tokens: {total_tokens:,} ({total_prompt:,} prompt + {total_completion:,} completion)")
|
||||||
|
|||||||
Reference in new issue
Block a user