mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 04:35:00 +00:00
cleanup
This commit is contained in:
parent
0d24d75d8f
commit
cdd150be42
1 changed files with 1 additions and 2 deletions
|
@ -146,12 +146,11 @@ class Coder:
|
||||||
if edit_format != from_coder.edit_format and done_messages and summarize_from_coder:
|
if edit_format != from_coder.edit_format and done_messages and summarize_from_coder:
|
||||||
try:
|
try:
|
||||||
done_messages = from_coder.summarizer.summarize_all(done_messages)
|
done_messages = from_coder.summarizer.summarize_all(done_messages)
|
||||||
except ValueError as e:
|
except ValueError:
|
||||||
# If summarization fails, keep the original messages and warn the user
|
# If summarization fails, keep the original messages and warn the user
|
||||||
io.tool_warning(
|
io.tool_warning(
|
||||||
"Chat history summarization failed, continuing with full history"
|
"Chat history summarization failed, continuing with full history"
|
||||||
)
|
)
|
||||||
io.tool_warning(str(e))
|
|
||||||
|
|
||||||
# Bring along context from the old Coder
|
# Bring along context from the old Coder
|
||||||
update = dict(
|
update = dict(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue