Merge pull request #479 from pipecat-ai/khk/small-fixes

fix small issues that crept into main
This commit is contained in:
Kwindla Hultman Kramer
2024-09-19 17:25:27 -07:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -223,7 +223,7 @@ class TTSService(AIService):
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):

View File

@@ -193,8 +193,7 @@ class BaseOpenAILLMService(LLMService):
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,