From ef9bb6f1d6baa9efd58dda82968f5031b359d32b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 27 May 2026 16:44:20 +0000 Subject: [PATCH] fix: correct COMPACT_MIN_TRIGGER_TOKENS to 50_000 Co-authored-by: Yassin Kortam --- .../experimental_pass_through/context_management/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/anthropic/experimental_pass_through/context_management/constants.py b/litellm/llms/anthropic/experimental_pass_through/context_management/constants.py index a7db7c63237..0d165698f23 100644 --- a/litellm/llms/anthropic/experimental_pass_through/context_management/constants.py +++ b/litellm/llms/anthropic/experimental_pass_through/context_management/constants.py @@ -10,7 +10,7 @@ CLEARED_TOOL_RESULT_PLACEHOLDER = "[Cleared by context management]" # compact_20260112 COMPACT_EDIT_TYPE = "compact_20260112" COMPACT_DEFAULT_TRIGGER_TOKENS = 150_000 -COMPACT_MIN_TRIGGER_TOKENS = 5 +COMPACT_MIN_TRIGGER_TOKENS = 50_000 COMPACT_SUMMARY_MODEL_SETTING_KEY = "context_management_summary_model" COMPACT_SUMMARY_SYSTEM_PREFIX = "Previous conversation summary: "