mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
fix bug in /token counts for chat history
This commit is contained in:
parent
5bf36002ec
commit
b1e7e80700
1 changed files with 0 additions and 1 deletions
|
@ -311,7 +311,6 @@ class Commands:
|
|||
# chat history
|
||||
msgs = self.coder.done_messages + self.coder.cur_messages
|
||||
if msgs:
|
||||
msgs = [dict(role="dummy", content=msg) for msg in msgs]
|
||||
tokens = self.coder.main_model.token_count(msgs)
|
||||
res.append((tokens, "chat history", "use /clear to clear"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue