mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
be careful logging main_models that are not in the model db
This commit is contained in:
parent
a7a626423c
commit
aa840f0e28
3 changed files with 16 additions and 4 deletions
|
@ -1412,13 +1412,13 @@ class Coder:
|
|||
)
|
||||
|
||||
self.event(
|
||||
"token_usage",
|
||||
"message_send",
|
||||
main_model=self.main_model,
|
||||
prompt_tokens=prompt_tokens,
|
||||
completion_tokens=completion_tokens,
|
||||
total_tokens=prompt_tokens + completion_tokens,
|
||||
cost=cost,
|
||||
total_cost=self.total_cost,
|
||||
model=self.main_model.name,
|
||||
)
|
||||
|
||||
def get_multi_response_content(self, final=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue