diff --git a/litellm/llms/anthropic/common_utils.py b/litellm/llms/anthropic/common_utils.py index 6e3ac69241e..27aed50720a 100644 --- a/litellm/llms/anthropic/common_utils.py +++ b/litellm/llms/anthropic/common_utils.py @@ -80,6 +80,8 @@ _CLAUDE_CODE_USER_AGENT_PREFIXES: Final = ("claude-cli/", "claude-code/") _CLAUDE_CODE_IDENTITY: Final = "You are Claude Code, Anthropic's official CLI for Claude." + + def requires_native_compaction_beta( custom_llm_provider: str, optional_params: Mapping[str, object],