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> |
||
|---|---|---|
| .. | ||
| bypassHandler.js | ||
| claudeCloaking.js | ||
| claudeHeaderCache.js | ||
| claudeSignature.js | ||
| clientDetector.js | ||
| cursorChecksum.js | ||
| cursorProtobuf.js | ||
| debugLog.js | ||
| error.js | ||
| ollamaTransform.js | ||
| proxyFetch.js | ||
| reasoningContentInjector.js | ||
| requestLogger.js | ||
| responsesStreamHelpers.js | ||
| sessionManager.js | ||
| sse.js | ||
| sseConstants.js | ||
| stream.js | ||
| streamHandler.js | ||
| streamHelpers.js | ||
| toolDeduper.js | ||
| usageTracking.js | ||