Commit Graph

8 Commits

Author SHA1 Message Date
sususu
bd5ec5310a feat(usage): capture structured Gemini, Vertex, AI Studio, and Antigravity usage 2026-10-29 14:44:33 +08:00
sususu
01551f5f6b feat(usage): capture structured OpenAI and Codex usage across responses, chat, and images 2026-10-29 14:42:21 +08:00
sususu
24840fddf8 feat(usage): capture structured xAI usage across chat, responses, and media 2026-10-29 14:40:08 +08:00
sususu
89e472f325 feat(usage): capture structured Anthropic Messages upstream usage details 2026-10-29 14:39:43 +08:00
Luis Pater
8289ec4c71 fix(usage): preserve interactions token semantics when merging stream usage
- Preserve separate-reasoning and subset token breakdown semantics in MergeStreamUsageDetail instead of unconditionally rebuilding merged stream usage with independent cache and inclusive reasoning rules.
- Add regression tests covering cumulative, identical, and partial Interactions stream usage merges as well as end-to-end plugin executor stream usage reporting.

Closes: #6925
2026-10-24 02:18:56 +08:00
Luis Pater
8fbf152b5b fix(executor): preserve top-level responses token usage when service tier is present
- Fall back to top-level token usage when Codex response usage contains only service tier metadata
- Propagate parsed service tier while retaining top-level token counts
- Avoid early return during stream usage observation for chunks with zero token counts

Closes: #6261
2026-10-02 16:01:23 +08:00
Luis Pater
31f4cfab3f feat: migrate CLIProxyAPI to version 8 2026-09-27 14:42:26 +08:00
Luis Pater
d31b15916d feat(executor): support token usage parsing for plugin executors
- Add `ParsePluginExecutorResponseUsage` to extract token usage from non-streaming plugin responses across Claude, Gemini, Interactions, Antigravity, and OpenAI/Codex protocols.
- Add `ObservePluginExecutorStreamUsage` to observe and aggregate token usage across streaming chunks.

Closes: #5340
2026-08-30 14:51:08 +08:00