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:
rin.kagamine committed 2026-06-13 16:43:56 -04:00
1 parent 0fd8fcb742
commit d31a5cbbe3
1 file changed
+1 -1
+1 -1
View File
@@ -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)")