From 6140fdb2c98b3b65dc526ed004a3d4d58072e013 Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Tue, 21 Oct 2025 17:40:59 -0400 Subject: [PATCH] Update `OpenAIRealtimeLLMService` to work with `LLMContext` and `LLMContextAggregatorPair` (cont'd). In anticipation of `messages` property being added to `LLMContext` (in another PR), remove warnings about the need to use `get_messages()` instead. --- src/pipecat/services/openai/realtime/context.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/pipecat/services/openai/realtime/context.py b/src/pipecat/services/openai/realtime/context.py index 96a714565..b5d68b8b4 100644 --- a/src/pipecat/services/openai/realtime/context.py +++ b/src/pipecat/services/openai/realtime/context.py @@ -27,9 +27,6 @@ context: OpenAIRealtimeLLMContext # or context: OpenAILLMContext - - # Reading messages from context - messages = context.messages ``` AFTER: @@ -46,9 +43,6 @@ # Context type context: LLMContext - - # Reading messages from context - messages = context.get_messages() ``` """ @@ -75,8 +69,6 @@ with warnings.catch_warnings(): "context: OpenAIRealtimeLLMContext\n" "# or\n" "context: OpenAILLMContext\n\n" - "# Reading messages from context\n" - "messages = context.messages\n" "```\n\n" "AFTER:\n" "```\n" @@ -89,8 +81,6 @@ with warnings.catch_warnings(): "frame: LLMContextFrame\n\n" "# Context type\n" "context: LLMContext\n\n" - "# Reading messages from context\n" - "messages = context.get_messages()\n" "```\n", )