diff --git a/agent_telephony/twilio_livekit/agent_twilio/src/functions/llm_talk.py b/agent_telephony/twilio_livekit/agent_twilio/src/functions/llm_talk.py index 9bc1957..a9852bf 100644 --- a/agent_telephony/twilio_livekit/agent_twilio/src/functions/llm_talk.py +++ b/agent_telephony/twilio_livekit/agent_twilio/src/functions/llm_talk.py @@ -59,7 +59,7 @@ async def llm_talk(function_input: LlmTalkInput) -> str: ] response = client.chat.completions.create( - model="gpt-3.5-turbo", + model="gpt-4.1-mini", messages=messages_dicts, stream=function_input.stream, ) diff --git a/agent_telephony/twilio_livekit/livekit-trunk-setup/.gitignore b/agent_telephony/twilio_livekit/livekit-trunk-setup/.gitignore index 862e67c..f7d2415 100644 --- a/agent_telephony/twilio_livekit/livekit-trunk-setup/.gitignore +++ b/agent_telephony/twilio_livekit/livekit-trunk-setup/.gitignore @@ -2,4 +2,5 @@ .venv .env uv.lock -inbound_trunk.json \ No newline at end of file +inbound_trunk.json +dispatch_rule.json \ No newline at end of file diff --git a/agent_telephony/twilio_livekit/livekit_pipeline/pyproject.toml b/agent_telephony/twilio_livekit/livekit_pipeline/pyproject.toml index df223c6..262dded 100644 --- a/agent_telephony/twilio_livekit/livekit_pipeline/pyproject.toml +++ b/agent_telephony/twilio_livekit/livekit_pipeline/pyproject.toml @@ -5,7 +5,7 @@ description = "Add your description here" readme = "README.md" requires-python = ">=3.10" dependencies = [ - "livekit-agents>=0.12.15", + "livekit-agents==0.12.20", "livekit-plugins-deepgram>=0.6.19", "livekit-plugins-elevenlabs>=0.7.13", "livekit-plugins-openai>=0.11.0", diff --git a/agent_telephony/twilio_livekit/livekit_pipeline/src/pipeline.py b/agent_telephony/twilio_livekit/livekit_pipeline/src/pipeline.py index be07473..400d6ef 100644 --- a/agent_telephony/twilio_livekit/livekit_pipeline/src/pipeline.py +++ b/agent_telephony/twilio_livekit/livekit_pipeline/src/pipeline.py @@ -42,20 +42,7 @@ def create_livekit_pipeline( api_key=f"{agent_id}-livekit", base_url=agent_url, ), - tts=elevenlabs.TTS( - voice=elevenlabs.tts.Voice( - id="UgBBYS2sOqTuMpoF3BR0", - name="Mark", - category="premade", - settings=elevenlabs.tts.VoiceSettings( - stability=0, - similarity_boost=0, - style=0, - speed=1.01, - use_speaker_boost=False - ), - ), - ), + tts=elevenlabs.TTS(), turn_detector=turn_detector.EOUModel(), ) except Exception as e: