DEBUG:livekit.agents:http_session(): creating a ne...
# ask-ai
s
DEBUGlivekit.agentshttp_session(): creating a new httpclient ctx DEBUGlivekit.agentshttp_session(): creating a new httpclient ctx 2025-07-10 170137,295 - DEBUG livekit.agents - http_session(): creating a new httpclient ctx {"pid": 46743, "job_id": "AJ_9ux24cXRgsgH"} DEBUGopenai. base clientRequest options: {'method': 'get', 'url': '/'} DEBUGopenai. base clientSending HTTP Request: GET https://api.openai.com/v1/ DEBUGhttpcore.connectionconnect_tcp.started host='api.openai.com' port=443 local_address=None timeout=15.0 socket_options=None DEBUGhttpcore.connectionconnect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x120fb82f0> DEBUGhttpcore.connectionstart_tls.started ssl_context=<ssl.SSLContext object at 0x120da6210> server_hostname='api.openai.com' timeout=15.0 DEBUGhttpcore.connectionstart_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x120f6c910> DEBUGhttpcore.http11send_request_headers.started request=<Request [b'GET']> DEBUGhttpcore.http11send_request_headers.complete DEBUGhttpcore.http11send_request_body.started request=<Request [b'GET']> DEBUGhttpcore.http11send_request_body.complete DEBUGhttpcore.http11receive_response_headers.started request=<Request [b'GET']> DEBUGhttpcore.http11receive_response_headers.complete return_value=(b'HTTP/1.1', 404, b'Not Found', [(b'Date', b'Thu, 10 Jul 2025 113138 GMT'), (b'Content-Type', b'text/html'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'strict-transport-security', b'max-age=31536000; includeSubDomains; preload'), (b'cf-cache-status', b'DYNAMIC'), (b'Set-Cookie', b'__cf_bm=mGh1gztgzREWZUANQfL11MoK7QkXBtX987VD8XEQkkI-1752147098-1.0.1.1-19QrxjpDWnQsAr1ZiNd6ExLVn6ya8GLSwHOaJDn.nE1ndRLX_f1TMD9CztdRlsm36H_k_CbmLr4bxuV0TnESUupu9JoO2ulnnQF6HsZjlGk; path=/; expires=Thu, 10-Jul-25 120138 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'X-Content-Type-Options', b'nosniff'), (b'Set-Cookie', b'_cfuvid=4zrUL14IfdZLjagA1k2uzy1RLBrML6cD8MZ4bJyUp0s-1752147098390-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), (b'Server', b'cloudflare'), (b'CF-RAY', b'95cfbc5e7a9333c0-DEL'), (b'Content-Encoding', b'gzip'), (b'alt-svc', b'h3=":443"; ma=86400')]) INFOhttpxHTTP Request: GET https://api.openai.com/v1/ "HTTP/1.1 404 Not Found" DEBUGhttpcore.http11receive_response_body.started request=<Request [b'GET']> DEBUGhttpcore.http11receive_response_body.complete DEBUGhttpcore.http11response_closed.started DEBUGhttpcore.http11response_closed.complete DEBUGopenai. base clientHTTP Response: GET https://api.openai.com/v1/ "404 Not Found" Headers([('date', 'Thu, 10 Jul 2025 113138 GMT'), ('content-type', 'text/html'), ('transfer-encoding', 'chunked'), ('connection', 'keep-alive'), ('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'), ('cf-cache-status', 'DYNAMIC'), ('set-cookie', '__cf_bm=mGh1gztgzREWZUANQfL11MoK7QkXBtX987VD8XEQkkI-1752147098-1.0.1.1-19QrxjpDWnQsAr1ZiNd6ExLVn6ya8GLSwHOaJDn.nE1ndRLX_f1TMD9CztdRlsm36H_k_CbmLr4bxuV0TnESUupu9JoO2ulnnQF6HsZjlGk; path=/; expires=Thu, 10-Jul-25 120138 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('x-content-type-options', 'nosniff'), ('set-cookie', '_cfuvid=4zrUL14IfdZLjagA1k2uzy1RLBrML6cD8MZ4bJyUp0s-1752147098390-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None'), ('server', 'cloudflare'), ('cf-ray', '95cfbc5e7a9333c0-DEL'), ('content-encoding', 'gzip'), ('alt-svc', 'h3=":443"; ma=86400')]) DEBUGopenai. base clientrequest_id: None DEBUGopenai. base clientEncountered httpx.HTTPStatusError Traceback (most recent call last): File "/Users/akash/code/pythonlivekit/venv/lib/python3.13/site-packages/openai/_base_client.py", line 1564, in request response.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/Users/akash/code/pythonlivekit/venv/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status raise HTTPStatusError(message, request=request, response=self) httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://api.openai.com/v1/' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404 DEBUGopenai. base clientRe-raising status error why the llm of openai is called giving me error
t
Thanks for reaching out, Akash. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!