mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 16:00:58 +00:00
Formatting
This commit is contained in:
parent
42bf7b4ae0
commit
5bbaaa0773
2 changed files with 7 additions and 6 deletions
|
|
@ -315,7 +315,9 @@ export class TuiRenderer implements AgentEventReceiver {
|
|||
this.tokenContainer.clear();
|
||||
|
||||
// Build token display text
|
||||
let tokenText = chalk.dim(`↑ ${this.lastInputTokens.toLocaleString()} ↓ ${this.lastOutputTokens.toLocaleString()}`);
|
||||
let tokenText = chalk.dim(
|
||||
`↑ ${this.lastInputTokens.toLocaleString()} ↓ ${this.lastOutputTokens.toLocaleString()}`,
|
||||
);
|
||||
|
||||
// Add reasoning tokens if present
|
||||
if (this.lastReasoningTokens > 0) {
|
||||
|
|
@ -380,8 +382,9 @@ export class TuiRenderer implements AgentEventReceiver {
|
|||
}
|
||||
|
||||
private showTokenUsage(): void {
|
||||
|
||||
let tokenText = chalk.dim(`Total usage\n input: ${this.cumulativeInputTokens.toLocaleString()}\n output: ${this.cumulativeOutputTokens.toLocaleString()}`);
|
||||
let tokenText = chalk.dim(
|
||||
`Total usage\n input: ${this.cumulativeInputTokens.toLocaleString()}\n output: ${this.cumulativeOutputTokens.toLocaleString()}`,
|
||||
);
|
||||
|
||||
if (this.cumulativeReasoningTokens > 0) {
|
||||
tokenText += chalk.dim(`\n reasoning: ${this.cumulativeReasoningTokens.toLocaleString()}`);
|
||||
|
|
@ -398,7 +401,6 @@ export class TuiRenderer implements AgentEventReceiver {
|
|||
tokenText += chalk.dim(` ${cacheText.join(" ")}`);
|
||||
}
|
||||
|
||||
|
||||
if (this.cumulativeToolCallCount > 0) {
|
||||
tokenText += chalk.dim(`\n tool calls: ${this.cumulativeToolCallCount}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue