feat: improve token counter display (#439)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2025-12-31 16:17:07 -08:00
committed by GitHub
parent f1fb38227d
commit 48089ef71f
2 changed files with 4 additions and 2 deletions

View File

@@ -395,6 +395,8 @@ export function onChunk(b: Buffers, chunk: LettaStreamingResponse) {
argsText: (line.argsText || "") + argsText,
};
b.byId.set(id, updatedLine);
// Count tool call arguments as LLM output tokens
b.tokenCount += argsText.length;
}
break;
}