OpenAI recently changed their API structure, does ...
# agents
m
OpenAI recently changed their API structure, does it impact livekit sdk? I see new errors where i never used to see @refined-appointment-81829
r
Which API change do you mean?
m
I am referring to the latest in this changelog 7th Aug https://platform.openai.com/docs/changelog
Same for this Jun 13 Feature v1/responses New reusable prompts are now available in the dashboard and Responses API. Via API, you can now reference templates created in the dashboard via the prompt parameter (with a prompt id, optional version) and supply dynamic variables that can include strings, images, or file inputs. Reusable prompts are not available in Chat Completions. Learn more.
And error i am getting is httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://api.openai.com/v1/'
r
Those changes are for reponses API which we do not support.
m
Fine, what about this error?
r
What version of LiveKit are you running. I don't think that happens anymore. But it is fine to ignore.
m
It is latest i have upgraded using pip
Thanks, i have a different question, i am getting slow agent response for outbound calls compared to inbound, it is using the same sip server and even outbound is a simpler agent
Can you guide me on how to investigate this? Performance is killer and agents respond after more than 4-5 seconds
r
I assume you are using prewarm already? What do you mean by
slow agent response for outbound calls compared to inbound
?
m
@boundless-wolf-70528
b
Hello, We have two call scenarios: 1. Inbound call: The agent response is fast and satisfing. 2. Outbound Call: The agent response is delayed in two cases: a. at the very beginning of the call the agent first response is delayed. b. during the interactions between the user and the agent. I am not recieving any errors at the beginning of the call. During the call and on each interaction from the user we recieve the below error: 2025-08-18 234707,160 - ERROR asyncio - Unclosed client session client_session: <aiohttp.client.ClientSession object at _0x14c261590_> {"pid": 9624, "job_id": "AJ_BqXWBLvoEdge"} ERRORasyncioUnclosed connector connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at _0x14c1ea820_>, 1029234.507098958)])'] connector: <aiohttp.connector.TCPConnector object at _0x14c26f350_> 2025-08-18 234707,161 - ERROR asyncio - Unclosed connector connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at _0x14c1ea820_>, 1029234.507098958)])'] connector: <aiohttp.connector.TCPConnector object at _0x14c26f350_> {"pid": 9624, "job_id": "AJ_BqXWBLvoEdge"}
m
@refined-appointment-81829 can you guide us plz on how to start investigating this delay?
r
https://livekit-users.slack.com/archives/C07FY8WHGPM/p1755543301894929 Those changes are for the responses API. We are using the completion API so it is not an issue.