examples: fix 22 series initial gate state

This commit is contained in:
Aleix Conchillo Flaqué
2025-02-03 09:16:58 -08:00
parent aafb2db620
commit 5dcdc68ef5
3 changed files with 15 additions and 8 deletions

View File

@@ -104,8 +104,11 @@ async def main():
)
# This processor keeps the last context and will let it through once the
# notifier is woken up.
gated_context_aggregator = GatedOpenAILLMContextAggregator(notifier)
# notifier is woken up. We start with the gate open because we send an
# initial context frame to start the conversation.
gated_context_aggregator = GatedOpenAILLMContextAggregator(
notifier=notifier, start_open=True
)
# Notify if the user hasn't said anything.
async def user_idle_notifier(frame):