From affbe9ac7d830f981489894408927955b6871568 Mon Sep 17 00:00:00 2001 From: Kwindla Hultman Kramer Date: Thu, 19 Sep 2024 17:17:33 -0700 Subject: [PATCH] fix small issues that crept into main --- src/pipecat/services/ai_services.py | 2 +- src/pipecat/services/openai.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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,