diff --git a/src/pipecat/services/ai_services.py b/src/pipecat/services/ai_services.py index b63188512..d91782e42 100644 --- a/src/pipecat/services/ai_services.py +++ b/src/pipecat/services/ai_services.py @@ -223,7 +223,7 @@ async def process_frame(self, frame: Frame, direction: FrameDirection): else: await self.push_frame(frame, direction) elif isinstance(frame, TTSSpeakFrame): - await self._push_tts_frames(frame.text, False) + await self._push_tts_frames(frame.text) elif isinstance(frame, TTSModelUpdateFrame): await self.set_model(frame.model) elif isinstance(frame, TTSVoiceUpdateFrame): diff --git a/src/pipecat/services/openai.py b/src/pipecat/services/openai.py index a03b350ba..d3f5fd280 100644 --- a/src/pipecat/services/openai.py +++ b/src/pipecat/services/openai.py @@ -193,8 +193,7 @@ async def _process_context(self, context: OpenAILLMContext): if self.has_function(function_name): await self._handle_function_call(context, tool_call_id, function_name, arguments) else: - raise OpenAIUnhandledFunctionException(f"The LLM tried to call a function named '{ - function_name}', but there isn't a callback registered for that function.") + raise OpenAIUnhandledFunctionException(f"The LLM tried to call a function named '{function_name}', but there isn't a callback registered for that function.") async def _handle_function_call( self,