mirror of
https://github.com/Wei-Shaw/sub2api
synced 2026-12-06 09:22:40 +00:00
- calculateTokenCost reduced from 80 to 15 lines - calculateCostInternal reduced from 91 to 15 lines - Shared logic in computeTokenBreakdown + computeCacheCreationCost - Unified rateMultiplier <= 0 protection in both paths