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()