mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
wip
This commit is contained in:
parent
69aea3e745
commit
e5ffb78224
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class ChatSummary:
|
|||
num = num // 2
|
||||
|
||||
# we want the head to end with an assistant msg
|
||||
if messages[num]["role"] == "assistant":
|
||||
while messages[num]["role"] == "assistant" and num < len(messages) - 1:
|
||||
num += 1
|
||||
|
||||
head = messages[:num]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue