I wanted to build an AI Agent using phonic, I was on livekit-agents 1.5.1 and it didn’t work, then changed to 5.1.8 and it worked locally, tried to replace my production agent from openai to phonic and it didn’t work, even locally, went back to openai and it still doesn’t work locally so yeah I don’t know what to do. I am lost with all of these versions. I had this in production : /usr/local/lib/python3.13/site-packages/phonic/core/websocket_compat.py:4: DeprecationWarning: websockets.exceptions.InvalidStatusCode is deprecated
from websockets.exceptions import InvalidStatusCode as InvalidWebSocketStatus # type: ignore[attr-defined]
INFO:livekit.agents:process initialized
{“message”: “process initialized”, “level”: “INFO”, “name”: “livekit.agents”, “pid”: 311, “elapsed_time”: 1.96, “timestamp”: “2026-05-12T00:46:30.599902+00:00”}
ERROR:livekit.agents:AgentSession is closing due to unrecoverable error
And I don’t know if it’s a problem with the plugins. I have
livekit-plugins-openai : 1.5.8
livekit-plugins-noise-cancellation : 0.2.5
livekit-plugins-ai-coustics : 0.2.7
I use ai-coustics as of the Livekit quickstart