File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -468,18 +468,19 @@ can also get all the extra fields on the Pydantic model as a dict with
468468
469469You can directly override the [ httpx client] ( https://www.python-httpx.org/api/#client ) to customize it for your use case, including:
470470
471- - Support for proxies
472- - Custom transports
471+ - Support for [ proxies] ( https://www.python-httpx.org/advanced/proxies/ )
472+ - Custom [ transports] ( https://www.python-httpx.org/advanced/transports/ )
473473- Additional [ advanced] ( https://www.python-httpx.org/advanced/clients/ ) functionality
474474
475475``` python
476+ import httpx
476477from openai import OpenAI, DefaultHttpxClient
477478
478479client = OpenAI(
479480 # Or use the `OPENAI_BASE_URL` env var
480481 base_url = " http://my.test.server.example.com:8083" ,
481482 http_client = DefaultHttpxClient(
482- proxies = " http://my.test.proxy.example.com" ,
483+ proxy = " http://my.test.proxy.example.com" ,
483484 transport = httpx.HTTPTransport(local_address = " 0.0.0.0" ),
484485 ),
485486)
You can’t perform that action at this time.
0 commit comments