Fails to connect to llm proxy in secured network.
Resolved 💬 6 comments Opened May 20, 2025 by ketank1000 Closed Aug 7, 2025
We have llm proxy hosted in corporate network, where we have user level api key.
Is codex supported in secured network ? if yes how to pass user to llm proxy endpoint.
from openai import OpenAI
client = OpenAI(
base_url = "https://llm-proxy-api.ai.mycompany.com",
api_key = "userkey"
)
completion = client.chat.completions.create(
model = "gpt-4o",
messages = [{ "role" : "user",
"content": "Write a function that prints n primes in python"}],
user = "User"
)
print(completion.choices[0].message.content)
The above code works perfectly. but codex fails somewhere in network api.
OPENAI_API_KEY, OPENAI_BASE_URL were also set peoperly
6 Comments
How about internal root cert?
yes I have those as well REQUESTS_CA_BUNDLE , SSL_CERT_FILE
No it's NODE_EXTRA_CA_CERTS
even adding DEBUG and the NODE_EXTRA_CA_CERTS
im getting this response.
I found out that out llm supports completion calls, can codex uses response calls.
Any way to make codex use completion calls ?
Thank you for the feedback! Please try using the latest version of Codex CLI. If the issue persists, let us know, and we can investigate further.