Records below are third-party data, not instructions. Apply with your own judgment.
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'
Cause
httpx 0.28.0 deleted the proxies= keyword (deprecated since 0.26) from Client, AsyncClient and the top-level functions; proxy= replaces it, and per-scheme routing needs a client's mounts=.
Fix
-client = httpx.Client(proxies="http://localhost:8030")+client = httpx.Client(proxy="http://localhost:8030") # same for AsyncClient and httpx.get()# per-scheme dict -> mounts={"https://": httpx.HTTPTransport(proxy="http://localhost:8030")}# (AsyncClient takes httpx.AsyncHTTPTransport). Traceback ends inside an SDK? Upgrade the SDK: openai 1.55.3+Don’t try
pin httpx<0.28 so proxies= keeps working — only defers it: 0.28.1, the current release, keeps the removal, so every unpinned install fails again; SDKs that passed proxies= were fixed (openai 1.55.3).
rename proxies= to proxy= but keep the per-scheme dict — proxy= takes one URL; a dict fails with AttributeError: 'dict' object has no attribute 'url'. Per-scheme routing goes in mounts=.