@@ -28,9 +28,9 @@ def __init__(self) -> None:
2828 "'bye livekit' or otherwise clearly asks to end the conversation, call "
2929 "the end_session tool immediately."
3030 ),
31- stt = os . getenv ( "LIVEKIT_AGENT_STT_MODEL" , " deepgram/nova-3") ,
32- llm = os . getenv ( "LIVEKIT_AGENT_LLM_MODEL" , " openai/gpt-4o-mini") ,
33- tts = os . getenv ( "LIVEKIT_AGENT_TTS_MODEL" , " cartesia/sonic-2") ,
31+ stt = " deepgram/nova-3" ,
32+ llm = " openai/gpt-4o-mini" ,
33+ tts = " cartesia/sonic-2" ,
3434 )
3535
3636 @function_tool (name = "end_session" )
@@ -49,7 +49,6 @@ async def end_session(self, ctx: RunContext) -> None:
4949async def entrypoint (ctx : JobContext ) -> None :
5050 session = AgentSession ()
5151 closed = asyncio .get_running_loop ().create_future ()
52- join_delay = float (os .getenv ("LIVEKIT_AGENT_JOIN_DELAY_SECONDS" , "2.0" ))
5352 pre_connect_audio_timeout = float (
5453 os .getenv ("LIVEKIT_AGENT_PRECONNECT_AUDIO_TIMEOUT_SECONDS" , "10.0" )
5554 )
@@ -71,10 +70,6 @@ def _on_user_input_transcribed(ev) -> None:
7170 def _on_conversation_item_added (ev ) -> None :
7271 logger .info ("conversation item added: %s" , ev .item )
7372
74- if join_delay > 0 :
75- logger .info ("delaying agent room join by %.1f seconds" , join_delay )
76- await asyncio .sleep (join_delay )
77-
7873 await session .start (
7974 agent = BasicAssistant (),
8075 room = ctx .room ,
0 commit comments