DEBUG
livekit.agentshttp_session(): creating a new httpclient ctx
DEBUG
livekit.agentshttp_session(): creating a new httpclient ctx
2025-07-10 17
0137,295 - DEBUG livekit.agents - http_session(): creating a new httpclient ctx {"pid": 46743, "job_id": "AJ_9ux24cXRgsgH"}
DEBUG
openai. base clientRequest options: {'method': 'get', 'url': '/'}
DEBUG
openai. base clientSending HTTP Request: GET
https://api.openai.com/v1/
DEBUG
httpcore.connectionconnect_tcp.started host='
api.openai.com' port=443 local_address=None timeout=15.0 socket_options=None
DEBUG
httpcore.connectionconnect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x120fb82f0>
DEBUG
httpcore.connectionstart_tls.started ssl_context=<ssl.SSLContext object at 0x120da6210> server_hostname='
api.openai.com' timeout=15.0
DEBUG
httpcore.connectionstart_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x120f6c910>
DEBUG
httpcore.http11send_request_headers.started request=<Request [b'GET']>
DEBUG
httpcore.http11send_request_headers.complete
DEBUG
httpcore.http11send_request_body.started request=<Request [b'GET']>
DEBUG
httpcore.http11send_request_body.complete
DEBUG
httpcore.http11receive_response_headers.started request=<Request [b'GET']>
DEBUG
httpcore.http11receive_response_headers.complete return_value=(b'HTTP/1.1', 404, b'Not Found', [(b'Date', b'Thu, 10 Jul 2025 11
3138 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 12
0138 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')])
INFO
httpxHTTP Request: GET
https://api.openai.com/v1/ "HTTP/1.1 404 Not Found"
DEBUG
httpcore.http11receive_response_body.started request=<Request [b'GET']>
DEBUG
httpcore.http11receive_response_body.complete
DEBUG
httpcore.http11response_closed.started
DEBUG
httpcore.http11response_closed.complete
DEBUG
openai. base clientHTTP Response: GET
https://api.openai.com/v1/ "404 Not Found" Headers([('date', 'Thu, 10 Jul 2025 11
3138 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 12
0138 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')])
DEBUG
openai. base clientrequest_id: None
DEBUG
openai. 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
DEBUG
openai. base clientRe-raising status error
why the llm of openai is called giving me error