Carry total costs back to main coder from /help and /ask

This commit is contained in:
Paul Gauthier 2024-08-03 10:18:35 -03:00
parent d3fb831e89
commit c45688c8b8

View file

@ -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"