feat: improve token counter display (#439)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user