Skip to content

Commit

Permalink
Merge pull request #479 from pipecat-ai/khk/small-fixes
Browse files Browse the repository at this point in the history
fix small issues that crept into main
  • Loading branch information
kwindla authored Sep 20, 2024
2 parents 1790fa4 + affbe9a commit 29bcbc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pipecat/services/ai_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 1 addition & 2 deletions src/pipecat/services/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 29bcbc6

Please sign in to comment.