fix bug in /token counts for chat history

This commit is contained in:
Paul Gauthier 2024-08-12 14:06:34 -07:00
parent 5bf36002ec
commit b1e7e80700

View file

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