https://retellai.com/?utm_source=discord&utm_medium=seo logo
Websocket disconnecting with custom LLM randomly
# ❓・bug-report
t
My websocket is randomly disconnecting mid call when I am using a custom LLM. I checked the history within the Retell dashboard and it is showing a Retell node.js issue. Can someone look at this please? There are no code issues on my end or exceptions thrown ( I use a Python backend) - the websocket just disconnects. Here is the log traceback I am seeing in the dashboard: 2024-06-20 15:26:34.252 info: LLM ws closed: 1012 2024-06-20 15:26:34.253 error: Encountered error in LLM ws: Error at WebSocket. (file:///usr/src/app/dist/custom_llm.js:136:40) at WebSocket.emit (node:events:519:28) at WebSocket.emitClose (/usr/src/app/node_modules/ws/lib/websocket.js:260:10) at TLSSocket.socketOnClose (/usr/src/app/node_modules/ws/lib/websocket.js:1272:15) at TLSSocket.emit (node:events:531:35) at node:net:338:12 at TCP.done (node:_tls_wrap:657:7) 2024-06-20 15:26:35.321 error: Audio websocket closed in error: 1002 2024-06-20 15:26:35.321 info: Ending audio websocket: a8a1ccdf13a98eb1efe47c7a1b227993
n
In the LLM websocket config message, are you passing auto_reconnect = True?
t
I was not passing that in... TIL about the websocket config. Will try that out. Thanks