fix: hide_zero_spend now filters models with sub-$0.001 spend
Previously filtered only exact $0.00, which left models with tiny fractional spend (e.g. $0.0001) visible. Now hides anything below $0.001 threshold — statistically insignificant noise. - Changed comparison from == 0 to < 0.001 - Updated docstring and summary text - Updated README parameter description
This commit is contained in:
1 parent
6adcd79c1a
commit
67f79cfabe
2 files changed
+4
-4
No files matched your search
@@ -13,7 +13,7 @@ Get LiteLLM cost breakdown for a date range. Returns per-model and per-day spend
|
||||
**Parameters:**
|
||||
- `start_date` (str, required): Start date in YYYY-MM-DD format
|
||||
- `end_date` (str, required): End date in YYYY-MM-DD format
|
||||
- `hide_zero_spend` (bool, default false): Hide models with $0.00 spend. Useful when free-tier or subscription models (e.g. Ollama Cloud) dominate the breakdown with high token counts but zero cost.
|
||||
- `hide_zero_spend` (bool, default false): Hide models with sub-$0.001 spend. Useful when free-tier or subscription models (e.g. Ollama Cloud) dominate the breakdown with high token counts but negligible cost.
|
||||
|
||||
### `litellm_history`
|
||||
Get recent LiteLLM request history. Returns the most recent N requests with model, call type, status, duration, token counts, cache hit %, and per-request cost. Useful for understanding which models are being called and how much individual requests cost.
|
||||
|
||||
Reference in new issue
Block a user