9router/src/app/api/providers
hodtien 54e3245ace feat(usage): track cached tokens + correct input/output/cache cost (#2209)
Normalize every provider to one cache-inclusive convention via
canonicalizeUsage() before persist, and price cached + cache_creation as
subsets of prompt_tokens in calculateCostFromTokens() to stop
double-counting. usageRepo now delegates cost math to a single source.
Surface Cached tokens/cost across dashboard (overview, tokens, cost,
details). Merge Claude message_start cache with message_delta output so
cache counts survive. Compatible LLM nodes now allow multiple API-key
connections (key pool).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 15:18:27 +07:00
..
[id] fix(kimchi): bump User-Agent to kimchi/0.1.40 (#2256) 2026-07-03 10:49:53 +07:00
client feat(kiro): headless API-key auth + direct Claude/Kiro route 2026-06-17 10:01:30 +07:00
kilo/free-models feat(kilo): fetch free models from Kilo API + Windows build fixes (#455) 2026-03-31 09:22:21 +07:00
suggested-models feat(provider): add MiMo Free no-auth provider 2026-06-13 10:14:21 +07:00
test-batch Add Providers 2026-02-20 17:05:46 +07:00
validate fix(xiaomi-tokenplan): region selector, key validation, multi-connection (#2251) 2026-07-03 11:03:18 +07:00
route.js feat(usage): track cached tokens + correct input/output/cache cost (#2209) 2026-07-03 15:18:27 +07:00