mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 01:03:49 +00:00
- 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 |
||
|---|---|---|
| .. | ||
| attachment-utils.ts | ||
| auth-token.ts | ||
| format.ts | ||
| i18n.ts | ||
| model-discovery.ts | ||
| proxy-utils.ts | ||
| test-sessions.ts | ||