I'm getting a `WARNING livekit.plugins.google - no...
# ask-ai
c
I'm getting a
WARNING livekit.plugins.google - no candidates in the response
in some responses from the AI. Is there a way to detect this, and do something about it (as an example, say a specific phrase such as "I couldn't produce a response")?
t
Thanks for reaching out, Luiz. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! That warning
livekit.plugins.google - no candidates in the response
pops up when the Google LLM plugin gets a response from the Gemini API but doesn’t find any valid candidates. Don’t worry, the plugin actually tries to handle this by retrying behind the scenes. Still, here are a few friendly tips to help you spot and manage it: • Keep an Eye on Logs: It’s a good idea to set up log monitoring so you can catch when this warning shows up in your app’s logs. • Handle API Errors Gracefully: If the retries don’t work out, the plugin will raise an
APIStatusError
. You can catch this in your code to handle it smoothly. • Add a Fallback Plan: Try wrapping your LLM calls in try-catch blocks. That way, if the Google LLM totally fails, you can respond with something like “I couldn’t produce a response” to keep things friendly and clear. If you want, I’m here to help you walk through setting any of this up—just let me know! Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime...