OpenAI API · sdk · fg-0139

OpenAI() raises "unexpected keyword argument 'proxies'" on a fresh install

If you see TypeError: Client.__init__() got an unexpected keyword argument 'proxies', the cause and the fix for OpenAI API are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxies'
Cause
httpx 0.28.0 removed the proxies argument that openai-python passed to it until 1.55.3. Pinned old SDK versions pull the newest httpx and fail at client creation.
Fix
Upgrade openai to 1.55.3 or later, or pin httpx below 0.28.
Apply
pip install "openai>=1.55.3" # or: pip install "httpx<0.28"
Affected
openai-python earlier than 1.55.3 with httpx 0.28.0 or later, since 2024-11-28
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun
OpenAI() raises "unexpected keyword argument 'proxies'" on a fresh install | Footgun