co-mono/packages
Mario Zechner 86e5a70ec4 Add totalTokens field to Usage type
- Added totalTokens field to Usage interface in pi-ai
- Anthropic: computed as input + output + cacheRead + cacheWrite
- OpenAI/Google: uses native total_tokens/totalTokenCount
- Fixed openai-completions to compute totalTokens when reasoning tokens present
- Updated calculateContextTokens() to use totalTokens field
- Added comprehensive test covering 13 providers

fixes #130
2025-12-06 22:46:02 +01:00
..
agent Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
ai Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
coding-agent Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00
mom Release v0.12.15 2025-12-06 21:29:03 +01:00
pods Release v0.12.15 2025-12-06 21:29:03 +01:00
proxy Release v0.12.15 2025-12-06 21:29:03 +01:00
tui Release v0.12.15 2025-12-06 21:29:03 +01:00
web-ui Add totalTokens field to Usage type 2025-12-06 22:46:02 +01:00