docs(troubleshoot): cost discrepancy debugging guide#25622
Conversation
- New troubleshoot page and blog post with step-by-step comparison workflow - Screenshots under static/img/cost-discrepancy-debug - Link from spend tracking; sidebar entry under Troubleshooting - Flowchart SVG: Path B connectors below box; clarify LiteLLM schedules customer calls when stuck Made-with: Cursor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Greptile SummaryThis PR adds a step-by-step troubleshooting guide for cost discrepancies between LiteLLM and provider bills ( Confidence Score: 5/5Safe to merge — docs-only addition with correct sidebar wiring, valid relative links, and two minor P2 grammar suggestions. All changed files are documentation. Sidebar entry, cross-doc links, and the callout in cost_tracking.md are all correctly formed. No code paths, migrations, or tests are affected. The only findings are P2 editorial nits in the new doc. No files require special attention.
|
| Filename | Overview |
|---|---|
| docs/my-website/docs/troubleshoot/cost_discrepancy.md | New troubleshooting guide — well-structured with a clear 4-step workflow, inline SVG flowchart, and escalation path; two minor text issues (grammar nit in SVG label, ambiguous "treating" phrasing) |
| docs/my-website/docs/proxy/cost_tracking.md | Adds a single :::info callout linking to the new cost_discrepancy guide; relative path resolves correctly from docs/proxy/ |
| docs/my-website/sidebars.js | Adds "troubleshoot/cost_discrepancy" as the second entry in the Troubleshooting category — placement and ID are correct |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Compare provider vs LiteLLM\nfor selected time range] --> B{Any category off\nby > 10%?\nrequests / input / output / cache}
B -- YES --> C[Path A: Token ingestion issue]
B -- NO --> D[Path B: Quantities match,\ncost differs]
C --> E[Report to LiteLLM team\nscreenshots + endpoints + model names]
D --> F[B1: Fix formula\nmanual cost calculation]
D --> G[B2: Fix model map\ncheck model_prices_and_context_window.json]
E & F & G --> H{Still unresolved?}
H --> I[Open GitHub issue\nwith Step 3 comparison table]
Reviews (3): Last reviewed commit: "Delete docs/my-website/blog/debug_cost_d..." | Re-trigger Greptile
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
ishaan-berri
left a comment
There was a problem hiding this comment.
No need for a blog post here
ae2aba0
into
BerriAI:litellm_internal_staging
Summary
Adds a troubleshooting guide and blog post for reconciling LiteLLM spend vs provider bills: align time ranges, compare token categories (including cache semantics), branch on ~10% deltas (ingestion vs pricing), and escalation via GitHub issue with LiteLLM scheduling a live call when needed.
Changes
docs/troubleshoot/cost_discrepancy.md(sidebar under Troubleshooting)blog/debug_cost_discrepancystatic/img/cost-discrepancy-debug/docs/proxy/cost_tracking.mdTesting
npm run buildindocs/my-website(docs-only; no Python tests).