diff --git a/litellm/llms/anthropic/pass_through/context_management/editors/compact.py b/litellm/llms/anthropic/pass_through/context_management/editors/compact.py index 4be645b8f72..81245b4e8b3 100644 --- a/litellm/llms/anthropic/pass_through/context_management/editors/compact.py +++ b/litellm/llms/anthropic/pass_through/context_management/editors/compact.py @@ -1046,7 +1046,7 @@ async def _estimate_summary_input_tokens( try: return await asyncify(litellm.token_counter)( model=summary_model, - messages=list(summary_messages), + messages=summary_messages, ) except Exception as e: verbose_logger.warning(