mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-03 18:23:51 +08:00
- Updated the `merge_usage` function to include `total_tokens` in the usage merging process. - Implemented logic to calculate `total_tokens` based on the sum of `context_input_tokens` and `output_tokens`. - Added a new test to verify that streamed usage correctly includes cached input in the total token count.