UI - fix display metrics, token count, pricing, session cost - REMOVE some prints

This commit is contained in:
lidia9 2025-04-23 10:03:51 +00:00
parent 960215976b
commit b6457bb329
1 changed files with 2 additions and 3 deletions

View File

@ -189,11 +189,10 @@ class CostTracker:
self.current_agent_output_tokens = total_output_tokens
self.current_agent_reasoning_tokens = total_reasoning_tokens
# SIMPLIFIED APPROACH: Get previous total and add current interaction cost
# Get previous total and add current interaction cost
previous_total = self.current_agent_total_cost
# Instead of recalculating the total, simply add the new interaction cost
# This is the key change to ensure consistency
# Add the new interaction cost
if provided_cost is not None and provided_cost > 0:
# If a total cost is explicitly provided, use it
new_total_cost = float(provided_cost)