mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-28 05:12:26 +00:00
The energy_wh_saved and flops_saved values were orders of magnitude too high because a scaling factor that grows linearly with N was applied to the energy calculation, making it scale as O(N³) instead of O(N²). Replace the buggy scale-factor approach with a direct FLOP-to-energy conversion using each provider's per-token constants. Add regression tests to prevent recurrence. Closes #95 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>