mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-22 14:51:10 +08: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