Getting this error : {"message": "all LLMs are una...
# ask-ai
b
Getting this error : {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 2918, "job_id": "AJ_hiQnUcaY4KGU", "timestamp": "2025-09-06T085520.018814+00:00"} {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 2918, "job_id": "AJ_hiQnUcaY4KGU", "timestamp": "2025-09-06T085500.921553+00:00"} {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 2918, "job_id": "AJ_hiQnUcaY4KGU", "timestamp": "2025-09-06T085441.215019+00:00"} {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 2918, "job_id": "AJ_hiQnUcaY4KGU", "timestamp": "2025-09-06T085440.797553+00:00"}
t
Thanks for reaching out, Nitish. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you share a bit more about when this error popped up? Like, were you running a certain job, using a specific feature, or maybe working with an API? Also, if you could tell me a little about your setup or configuration, that would really help me get a clearer picture.
b
so my agent is using azure models using the if azure is None: raise ValueError("Azure plugin is not available. Please install livekit-plugins-azure.") return openai.LLM.with_azure( model=config.model, azure_deployment=config.model, temperature=config.temperature, ) i do not know why this gives , or form which plugin we get thsi
t
Looks like the error is telling us that the Azure plugin is either missing or not set up quite right. No worries, here’s a simple way to get it sorted out: 1. Install the Plugin: Just run this command to get the Azure plugin installed:
pip install livekit-plugins-azure
Or, if you prefer, you can install it along with the LiveKit Agents Azure extras like this:
pip install "livekit-agents[azure]~=1.2"
2. Set Required Environment Variables: Make sure these variables are in your environment or in your
.env
file:
AZURE_SPEECH_KEY=<your-speech-key>
AZURE_SPEECH_REGION=<your-speech-region>
AZURE_SPEECH_HOST=<your-speech-host>
(this one’s optional but it’s a good idea to include it). 3. Verify Plugin Registration: Double-check that you’re importing the plugin correctly in your code:
from livekit.plugins import azure
4. Check Installation: You can confirm the plugin’s installed by running:
pip list | grep livekit-plugins-azure
5. Troubleshoot Authentication: Make sure your keys or tokens are valid. If you’re using environment variables, it’s worth double-checking for any typos. If you’re working with Azure OpenAI models, just a heads up to use the right plugin (
livekit-plugins-openai
) and the
with_azure
method. Feel free to reach out if you want me to walk you through any of these steps or if something’s still tricky! Sources: Azure OpenAI LLM integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-azure/livekit/plugins/azure/version.py | Azure Speech STT integration guide | LiveKit Docs | Azure Speech TTS integration guide | LiveKit Docs | Azure integration guide | LiveKit Docs
b
the plugin is avialbel and we intialized it correctly but during running process we sometimes get thsi error {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 6652, "job_id": "AJ_4VRBrxxHLZ3V", "timestamp": "2025-09-06T104610.204112+00:00"} {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 6652, "job_id": "AJ_4VRBrxxHLZ3V", "timestamp": "2025-09-06T104541.146135+00:00"} {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 6652, "job_id": "AJ_4VRBrxxHLZ3V", "timestamp": "2025-09-06T104504.515791+00:00"} {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 6652, "job_id": "AJ_4VRBrxxHLZ3V", "timestamp": "2025-09-06T104440.723967+00:00"} {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 6652, "job_id": "AJ_4VRBrxxHLZ3V", "timestamp": "2025-09-06T104415.537281+00:00"} {"message": "all LLMs are unavailable, retrying..", "level": "ERROR", "name": "livekit.agents", "pid": 6652, "job_id": "AJ_4VRBrxxHLZ3V", "timestamp": but it should not be the case as llms are present
t
Hey there! That error message, "all LLMs are unavailable, retrying," pops up when the
FallbackAdapter
in LiveKit tries to use several LLMs but finds that all of them are either unavailable or run into issues during runtime. Don’t worry, here are some friendly steps to help you get this sorted out: 1. Double-check your LLM Configuration: Make sure all the LLMs listed in your
FallbackAdapter
are set up correctly and can be reached. For example:
Copy code
from livekit.agents import llm
from livekit.plugins import openai

adapter = llm.FallbackAdapter([
 openai.LLM(model="gpt-4o"),
 openai.LLM.with_azure(model="gpt-4o", azure_endpoint="...")
])
2. Verify API Keys and Network Connection: Check that your API keys for all LLMs are valid and that your network connection is stable—sometimes that’s the sneaky culprit! 3. Tweak Retry Settings if Needed: You can customize how retries work with these options: ◦ `attempt_timeout`: How long to wait per LLM attempt (default is 5.0s) ◦ `max_retry_per_llm`: Number of retries per LLM before moving on (default is 0) ◦ `retry_interval`: Pause between retries (default is 0.5s) 1. Keep an Eye on Recovery: The
FallbackAdapter
will keep checking if any previously failed LLMs come back online. Just make sure you have at least one LLM that’s reliable and reachable in your list. If you’re still running into trouble after trying these, just give me a shout! I’m here to help you troubleshoot further. Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py | Events and error handling | LiveKit Docs