diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-23 17:29:36 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-23 17:29:36 +0200 |
| commit | d7df47cbe83d3b53d46bc6a25bc708a722a1047c (patch) | |
| tree | a98797fa2786900bea72d142d3d0d3a424259f12 /examples | |
| parent | 985d538a5fdb1b58d35621687313ed7d74d80288 (diff) | |
| download | desktop-assistant-d7df47cbe83d3b53d46bc6a25bc708a722a1047c.tar.gz desktop-assistant-d7df47cbe83d3b53d46bc6a25bc708a722a1047c.zip | |
usage: save each turn's token usage in turns.usage
The daemon used the API's usage block only for the live context meter
and threw it away, so llm-cost-dashboard had nothing to track. stream()
now keeps each request's last usage chunk (Hetzner sends running totals
on every chunk) and answer() saves them per turn as JSON
{ts, provider, model, rounds}. Existing databases gain the column.
Titles and transcriptions are not counted: always local, $0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
