Commit Graph
8 Commits
Author SHA1 Message Date
rin.kagamine 7ab17e03d7 docs: update ARCHITECTURE.md and README.md for v1.2.0
- ARCHITECTURE.md: Added natural language date resolution section,
  hide_zero_spend parameter docs, updated example output, changelog
- README.md: Added changelog section with v1.2.0 and v1.1.0 entries
- Updated version metadata and creation date
2026-06-13 16:46:21 -04:00
rin.kagamine 0fd8fcb742 feat: natural language date shortcuts for litellm_cost()
Adds _resolve_date() helper that converts natural language shortcuts
into YYYY-MM-DD before calling the LiteLLM API.

Supported shortcuts:
- today, yesterday, tomorrow
- N days ago (e.g. "two days ago")
- monday-sunday (most recent occurrence)
- last monday-last sunday
- this week, last week
- this month, last month

Falls back to passthrough for already-formatted YYYY-MM-DD strings.

Updated README with new parameter documentation.
2026-06-13 16:42:39 -04:00
rin.kagamine 67f79cfabe 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
2026-06-13 16:25:15 -04:00
rin.kagamine 6adcd79c1a feat: add hide_zero_spend parameter to litellm_cost()
Adds optional hide_zero_spend parameter (default False) to filter out
models with bash.00 spend from the per-model breakdown. Useful when
free-tier or subscription models (e.g. Ollama Cloud) dominate the
breakdown with high token counts but zero cost.

- Updated litellm_cost() signature with hide_zero_spend parameter
- Added filtering logic in model line builder
- Added hidden model count summary line
- Updated README with parameter documentation
- Bumped version to 1.2.0
2026-06-13 16:21:49 -04:00
rin.kagamine 51da313e3f docs: update README and ARCHITECTURE for show_failed parameter
- README: add show_failed to litellm_history params
- ARCHITECTURE: update params line and add Filtering section explaining
  show_failed=False behavior and header indicator
2026-06-04 21:32:58 -04:00
rin.kagamine 8d90c0c277 docs: update README and ARCHITECTURE for v1.1.0 — litellm_history function
- README: three functions, litellm_history params and cost awareness note
- ARCHITECTURE: full Function 3 section with endpoint, fields, output format,
  token display rules, error paths, and performance considerations
2026-06-04 21:24:41 -04:00
rin.kagamine 4dd10fab80 docs: add ARCHITECTURE.md from Palace doc, cross-reference from README 2026-06-04 19:03:00 -04:00
rin.kagamine 98a1b3c546 LiteLLM Dashboard Tool v1.0.0 — two-function OWI Tool
- litellm_health: proxy health + auth check (strips litellm_metadata)
- litellm_cost: cost breakdown by date range (per-model, per-day, cache hit rate)
- Valves: litellm_url, litellm_master_key (password field, no hardcoded keys)
- Tested against mon-rin1:4000 Gemini proxy — all green
- Error handling: auth failure, connection failure, timeout
- Architecture doc: Memory Palace KB #596
2026-06-04 15:47:29 -04:00