We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69e66fa commit 8b48252Copy full SHA for 8b48252
livekit-agents/livekit/agents/cli/cli.py
@@ -1171,7 +1171,7 @@ def _done_callback(task: asyncio.Task[list[RunEvent]]) -> None:
1171
task = asyncio.create_task(_generate(text))
1172
task.add_done_callback(_done_callback)
1173
1174
- h: asyncio.Future[list[RunEvent]] = asyncio.Future()
+ h: asyncio.Future[list[RunEvent]] = c.io_loop.create_future()
1175
c.io_loop.call_soon_threadsafe(_generate_with_context, text, h, context=c.io_context)
1176
1177
c.console.print()
0 commit comments