removed space from event handler
This commit is contained in:
@@ -137,12 +137,14 @@ async def main(settings: BotSettings):
|
|||||||
await task.queue_frame(EndFrame())
|
await task.queue_frame(EndFrame())
|
||||||
|
|
||||||
# When the first participant joins, the bot should introduce itself.
|
# 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):
|
async def on_first_participant_joined(transport, participant):
|
||||||
# Provide some air whilst tracks subscribe
|
# Provide some air whilst tracks subscribe
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
messages.append(
|
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)])
|
await task.queue_frames([LLMMessagesFrame(messages)])
|
||||||
|
|
||||||
runner = PipelineRunner()
|
runner = PipelineRunner()
|
||||||
|
|||||||
Reference in New Issue
Block a user