From c45688c8b819baa8bae25d56bbcfa06a6f22d834 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 3 Aug 2024 10:18:35 -0300 Subject: [PATCH] Carry total costs back to main coder from /help and /ask --- aider/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index 172468838..a1a225261 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -793,6 +793,7 @@ class Commands: dict(role="user", content=user_msg), dict(role="assistant", content=assistant_msg), ] + self.coder.total_cost += coder.total_cost def clone(self): return Commands( @@ -825,6 +826,7 @@ class Commands: dict(role="user", content=user_msg), dict(role="assistant", content=assistant_msg), ] + self.coder.total_cost += chat_coder.total_cost def get_help_md(self): "Show help about all commands in markdown"