I'm reading a bit on new LiveKit Inference feature...
# agents
w
I'm reading a bit on new LiveKit Inference feature, there are some questions: 1. How do I configure the model, for example if we are using plugins, we can specify all the settings like speed, lang, etc.? String only input is kinda limited. 2. How to use
FallbackAdapter
with livekit inference? 3. Just curious, why not
openai.stt.STT.with_livekit
(or something like this) API?
b
From what I can see in the docs (example) you can import and use inference as any other plugin:
Copy code
from livekit.agents import AgentSession, inference

session = AgentSession(
    llm=inference.LLM(
        model="google/gemini-2.5-flash-lite",
        extra_kwargs={
            "max_completion_tokens": 1000
        }
    ),
    # ... tts, stt, vad, turn_detection, etc.
)
So I'd guess it will work with the fallback adapter without issues. For the settings it might be worth to look into the extra keyword args field. The LLM one has a typed dict ChatCompletionOptions with several options.
w
Nice, thank you! I'll take a look now