and fixing anthropic demos

This commit is contained in:
Kwindla Hultman Kramer
2024-08-14 23:14:20 -07:00
parent 2b26d7182f
commit 253765c611
3 changed files with 15 additions and 10 deletions

View File

@@ -137,7 +137,8 @@ If you need to use a tool, simply use the tool. Do not tell the user the tool yo
"""
messages = [{"role": "system",
"content": system_prompt,
"content": system_prompt},
{"role": "user",
"content": "Start the conversation by introducing yourself."}]
context = OpenAILLMContext(messages, tools)
@@ -161,7 +162,7 @@ If you need to use a tool, simply use the tool. Do not tell the user the tool yo
transport.capture_participant_transcription(video_participant_id)
transport.capture_participant_video(video_participant_id, framerate=0)
# Kick off the conversation.
await task.queue_frames([LLMMessagesFrame(messages)])
await task.queue_frames([context_aggregator.user().get_context_frame()])
runner = PipelineRunner()
await runner.run(task)