LLMContext: async create_image_message/create_audio_message fixes

This commit is contained in:
Aleix Conchillo Flaqué
2025-11-18 12:08:09 -08:00
parent f93276c64f
commit ceaf53fdb0
4 changed files with 14 additions and 11 deletions

View File

@@ -391,7 +391,7 @@ class AudioAccumulator(FrameProcessor):
)
self._user_speaking = False
context = LLMContext()
context.add_audio_frames_message(audio_frames=self._audio_frames)
await context.add_audio_frames_message(audio_frames=self._audio_frames)
await self.push_frame(LLMContextFrame(context=context))
elif isinstance(frame, InputAudioRawFrame):
# Append the audio frame to our buffer. Treat the buffer as a ring buffer, dropping the oldest