mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
86e5a70ec4
- 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
86e5a70ec4
ยท
2025-12-06 22:46:02 +01:00
History