From 5bd5d222700a67990bebfe38b2f74eb4c379fb2a Mon Sep 17 00:00:00 2001 From: Jon Taylor Date: Wed, 26 Jun 2024 18:30:56 +0100 Subject: [PATCH] removed space from event handler --- examples/fast-chatbot/bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/fast-chatbot/bot.py b/examples/fast-chatbot/bot.py index ed80ae965..431ff81d0 100644 --- a/examples/fast-chatbot/bot.py +++ b/examples/fast-chatbot/bot.py @@ -137,12 +137,14 @@ async def main(settings: BotSettings): await task.queue_frame(EndFrame()) # When the first participant joins, the bot should introduce itself. - @ transport.event_handler("on_first_participant_joined") + @transport.event_handler("on_first_participant_joined") async def on_first_participant_joined(transport, participant): # Provide some air whilst tracks subscribe time.sleep(2) messages.append( - {"content": "Briefly introduce yourself by saying 'hello, I'm FastBot, how can I help you today?'"}) + { + "role": "system", + "content": "Briefly introduce yourself by saying 'hello, I'm FastBot, how can I help you today?'"}) await task.queue_frames([LLMMessagesFrame(messages)]) runner = PipelineRunner()