mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
- Add handling for message_start event to capture initial token usage - Fix message_delta to use assignment (=) instead of addition (+=) since Anthropic sends cumulative token counts, not incremental - Add comprehensive tests for all providers (Google, OpenAI Completions, OpenAI Responses, Anthropic) - Document OpenAI limitation: token stats only available at stream end Fixes issue where aborted streams had zero token counts despite Anthropic sending input tokens in the initial message_start event. |
||
|---|---|---|
| .. | ||
| data | ||
| abort.test.ts | ||
| agent.test.ts | ||
| empty.test.ts | ||
| enum-test.ts | ||
| handoff.test.ts | ||
| stream.test.ts | ||
| tokens.test.ts | ||
| tool-call-without-result.test.ts | ||
| tool-validation.test.ts | ||
| unicode-surrogate.test.ts | ||