removed space from event handler

This commit is contained in:
Jon Taylor
2024-06-26 18:30:56 +01:00
parent 6ee7932337
commit 5bd5d22270

View File

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