future-ocean-83972
11/28/2025, 11:37 AMtall-airline-16756
11/28/2025, 11:37 AMtall-airline-16756
11/28/2025, 11:37 AMfallback_models parameter. Provide an ordered list of model IDs and LiveKit will try the next model if the primary is unreachable or fails.
Example (Python):
from livekit.plugins import openai
llm = openai.LLM.with_openrouter(
model="openai/gpt-4o",
fallback_models=[
"anthropic/claude-sonnet-4",
"openai/gpt-5-mini",
],
)
This fallback mechanism is available specifically in the OpenRouter integration. Would you like an example for another language or help building the fallback list for your use case?
Sources: OpenRouter LLM plugin guide | LiveKit docs