diff --git a/OpenRouter/TokenTracker.cs b/OpenRouter/TokenTracker.cs index 1fd4ff5..d96d3bb 100644 --- a/OpenRouter/TokenTracker.cs +++ b/OpenRouter/TokenTracker.cs @@ -37,15 +37,15 @@ internal sealed class TokenTracker /// /// Returns true if the context is getting too large and should be compacted. - /// Triggers at min(75% of model context, 100K tokens). + /// Triggers at min(75% of model context, 150K tokens). /// public bool ShouldCompact() { if (LastInputTokens <= 0) return false; int threshold = ContextLength > 0 - ? Math.Min((int)(ContextLength * 0.75), 100_000) - : 100_000; + ? Math.Min((int)(ContextLength * 0.75), 150_000) + : 150_000; return LastInputTokens >= threshold; }