Fix compaction loop for small models or large input (#5803)
This commit is contained in:
@@ -320,8 +320,7 @@ async fn do_compact(
|
||||
continue;
|
||||
} else {
|
||||
return Err(anyhow::anyhow!(
|
||||
"Failed to compact messages: context length still exceeded after {} attempts with maximum removal",
|
||||
removal_percentages.len()
|
||||
"Failed to compact: context limit exceeded even after removing all tool responses"
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user