co-mono/packages
Mario Zechner bc8d994a7b Fix token statistics on abort for Anthropic provider
- 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.
2025-10-26 21:22:24 +01:00
..
agent Relesae 0.5.47 2025-10-26 00:45:52 +02:00
agent-old Relesae 0.5.47 2025-10-26 00:45:52 +02:00
ai Fix token statistics on abort for Anthropic provider 2025-10-26 21:22:24 +01:00
coding-agent Relesae 0.5.47 2025-10-26 00:45:52 +02:00
pods Relesae 0.5.47 2025-10-26 00:45:52 +02:00
proxy Relesae 0.5.47 2025-10-26 00:45:52 +02:00
tui Relesae 0.5.47 2025-10-26 00:45:52 +02:00
web-ui Relesae 0.5.47 2025-10-26 00:45:52 +02:00