feat: decreased deduplication amount of read results from 5 to 3
This commit is contained in:
@@ -71,7 +71,7 @@ internal sealed partial class ContextCompactor(IChatClient client)
|
|||||||
string reason = "";
|
string reason = "";
|
||||||
|
|
||||||
// Rule 1: Deduplication. If we have already seen this file in a newer message (since we are walking backward), redact this one.
|
// Rule 1: Deduplication. If we have already seen this file in a newer message (since we are walking backward), redact this one.
|
||||||
if (filesRead.TryGetValue(filePath, out int count) && count >= 5)
|
if (filesRead.TryGetValue(filePath, out int count) && count >= 3)
|
||||||
{
|
{
|
||||||
shouldRedact = true;
|
shouldRedact = true;
|
||||||
reason = "deduplication — you read this file 5 or more times later";
|
reason = "deduplication — you read this file 5 or more times later";
|
||||||
|
|||||||
Reference in New Issue
Block a user