From 7a96a1e888ac2579f68d4444f8a76ce2b7c885f8 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 9 Aug 2024 17:38:49 -0400 Subject: [PATCH] Don't add total_cost after /ask & /help --- aider/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index f9d613178..8f756668a 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -830,7 +830,7 @@ class Commands: dict(role="user", content=user_msg), dict(role="assistant", content=assistant_msg), ] - self.coder.total_cost += coder.total_cost + self.coder.total_cost = coder.total_cost def clone(self): return Commands( @@ -863,7 +863,7 @@ class Commands: dict(role="user", content=user_msg), dict(role="assistant", content=assistant_msg), ] - self.coder.total_cost += chat_coder.total_cost + self.coder.total_cost = chat_coder.total_cost def get_help_md(self): "Show help about all commands in markdown"