mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
Carry total costs back to main coder from /help and /ask
This commit is contained in:
parent
d3fb831e89
commit
c45688c8b8
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue