mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
fix(tui): hide cost in stats panel when zero
This commit is contained in:
parent
0159d431ea
commit
cdf3cca3b7
1 changed files with 4 additions and 3 deletions
|
|
@ -381,9 +381,10 @@ def build_tui_stats_text(tracer: Any, agent_config: dict[str, Any] | None = None
|
|||
stats_text.append("Total Tokens: ", style="bold white")
|
||||
stats_text.append(format_token_count(total_tokens), style="dim white")
|
||||
|
||||
stats_text.append(" • ", style="dim white")
|
||||
stats_text.append("Cost: ", style="bold white")
|
||||
stats_text.append(f"${total_stats['cost']:.4f}", style="dim white")
|
||||
if total_stats["cost"] > 0:
|
||||
stats_text.append(" • ", style="dim white")
|
||||
stats_text.append("Cost: ", style="bold white")
|
||||
stats_text.append(f"${total_stats['cost']:.4f}", style="dim white")
|
||||
|
||||
return stats_text
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue