mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
feat: Add total_cost as an init parameter and pass it when creating a from_coder
This commit is contained in:
parent
7a7febfb2b
commit
b357c90590
1 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,7 @@ class Coder:
|
|||
cur_messages=from_coder.cur_messages,
|
||||
aider_commit_hashes=from_coder.aider_commit_hashes,
|
||||
commands=from_coder.commands.clone(),
|
||||
total_cost=from_coder.total_cost,
|
||||
)
|
||||
|
||||
use_kwargs.update(update) # override to complete the switch
|
||||
|
@ -216,6 +217,7 @@ class Coder:
|
|||
map_mul_no_files=8,
|
||||
commands=None,
|
||||
summarizer=None,
|
||||
total_cost=0.0,
|
||||
):
|
||||
if not fnames:
|
||||
fnames = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue