Merge pull request #479 from pipecat-ai/khk/small-fixes
fix small issues that crept into main
This commit is contained in:
@@ -223,7 +223,7 @@ class TTSService(AIService):
|
|||||||
else:
|
else:
|
||||||
await self.push_frame(frame, direction)
|
await self.push_frame(frame, direction)
|
||||||
elif isinstance(frame, TTSSpeakFrame):
|
elif isinstance(frame, TTSSpeakFrame):
|
||||||
await self._push_tts_frames(frame.text, False)
|
await self._push_tts_frames(frame.text)
|
||||||
elif isinstance(frame, TTSModelUpdateFrame):
|
elif isinstance(frame, TTSModelUpdateFrame):
|
||||||
await self.set_model(frame.model)
|
await self.set_model(frame.model)
|
||||||
elif isinstance(frame, TTSVoiceUpdateFrame):
|
elif isinstance(frame, TTSVoiceUpdateFrame):
|
||||||
|
|||||||
@@ -193,8 +193,7 @@ class BaseOpenAILLMService(LLMService):
|
|||||||
if self.has_function(function_name):
|
if self.has_function(function_name):
|
||||||
await self._handle_function_call(context, tool_call_id, function_name, arguments)
|
await self._handle_function_call(context, tool_call_id, function_name, arguments)
|
||||||
else:
|
else:
|
||||||
raise OpenAIUnhandledFunctionException(f"The LLM tried to call a function named '{
|
raise OpenAIUnhandledFunctionException(f"The LLM tried to call a function named '{function_name}', but there isn't a callback registered for that function.")
|
||||||
function_name}', but there isn't a callback registered for that function.")
|
|
||||||
|
|
||||||
async def _handle_function_call(
|
async def _handle_function_call(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user