Why am I getting this error after updating livekit...
# ask-ai
g
Why am I getting this error after updating livekit-agents and it's plugins to '1.2.6'? 'Expected type 'Literal["stt", "vad", "realtime_llm", "manual"] | _TurnDetector | NotGiven', got 'MultilingualModel' instead '
Copy code
session = AgentSession(
        turn_detection=MultilingualModel(),
        stt=deepgram.STT(model="nova-3", language="multi"),
        llm=google.LLM(model="gemini-2.5-flash", vertexai=True, project="voxo-5060", temperature=0.6),
        tts=cartesia.TTS(model="sonic-turbo", voice=voice_id, language="en"),
        vad=vad
    )
t
Thanks for reaching out, Brandon. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just wanted to check— is the 'MultilingualModel' you're using something you built yourself, or does it come from a particular library? Also, has this setup worked for you before with an earlier version of livekit-agents, or is this the first time you're trying it out? Sources: LiveKit turn detector plugin | LiveKit Docs
g
Yes. This setup works in 1.2.5 and it comes from:
Copy code
from livekit.plugins.turn_detector.multilingual import MultilingualModel