Trying the new websockets responses api from openai

{“message”: “Task exception was never retrieved\nfuture: <Task finished name=‘_ResponsesWebsocket._run_task’ coro=<_ResponsesWebsocket._run_ws() done, defined at /app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py:90> exception=APIConnectionError(‘OpenAI Responses WebSocket connection closed unexpectedly’, body=None, retryable=True)>\nTraceback (most recent call last):\n File “/app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py”, line 150, in _run_ws\n task.result()\n ~~~~~~~~~~~^^\n File “/app/.venv/lib/python3.13/site-packages/livekit/agents/utils/log.py”, line 17, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File “/app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py”, line 126, in _recv_task\n raise APIConnectionError(\n message=“OpenAI Responses WebSocket connection closed unexpectedly”\n )\nlivekit.agents._exceptions.APIConnectionError: OpenAI Responses WebSocket connection closed unexpectedly”, “level”: “ERROR”, “name”: “asyncio”, “exc_info”: “Traceback (most recent call last):\n File “/app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py”, line 150, in _run_ws\n task.result()\n ~~~~~~~~~~~^^\n File “/app/.venv/lib/python3.13/site-packages/livekit/agents/utils/log.py”, line 17, in async_fn_logs\n return await fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File “/app/.venv/lib/python3.13/site-packages/livekit/plugins/openai/responses/llm.py”, line 126, in _recv_task\n raise APIConnectionError(\n message=“OpenAI Responses WebSocket connection closed unexpectedly”\n )\nlivekit.agents._exceptions.APIConnectionError: OpenAI Responses WebSocket connection closed unexpectedly”, “room”: “interview_69a8680c26e4e3b73261f331_1772644958”, “pid”: 145, “job_id”: “AJ_yfcT9sRUBeMh”, “room_id”: “RM_HGd9yDaHmJfq”, “timestamp”: “2026-03-04T17:23:15.646973+00:00”}

What are you setting temp to?

There’s a recently reported bug where sending a decimal temperature (e.g. 1.2) over the Responses WebSocket causes the server to close the connection immediately (code 1000, no events).

Have a look through the OpenAI forum and see if you see what maybe happening.