From 790c434a0833939e950b19ac37c5c7e61835bf89 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Thu, 26 Feb 2026 20:58:06 -0500 Subject: [PATCH] Update summary message role: use user instead of assistant The context summary is information provided to the assistant, not something the assistant said. --- src/pipecat/processors/aggregators/llm_context_summarizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipecat/processors/aggregators/llm_context_summarizer.py b/src/pipecat/processors/aggregators/llm_context_summarizer.py index 7886fcf12..4a32d5397 100644 --- a/src/pipecat/processors/aggregators/llm_context_summarizer.py +++ b/src/pipecat/processors/aggregators/llm_context_summarizer.py @@ -306,8 +306,8 @@ class LLMContextSummarizer(BaseObject): # Get recent messages to keep recent_messages = messages[last_summarized_index + 1 :] - # Create summary message as an assistant message - summary_message = {"role": "assistant", "content": f"Conversation summary: {summary}"} + # Create summary message as an user message + summary_message = {"role": "user", "content": f"Conversation summary: {summary}"} # Reconstruct context new_messages = []