File tree 1 file changed +4
-3
lines changed
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
468
468
469
469
You can directly override the [ httpx client] ( https://www.python-httpx.org/api/#client ) to customize it for your use case, including:
470
470
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/ )
473
473
- Additional [ advanced] ( https://www.python-httpx.org/advanced/clients/ ) functionality
474
474
475
475
``` python
476
+ import httpx
476
477
from openai import OpenAI, DefaultHttpxClient
477
478
478
479
client = OpenAI(
479
480
# Or use the `OPENAI_BASE_URL` env var
480
481
base_url = " http://my.test.server.example.com:8083" ,
481
482
http_client = DefaultHttpxClient(
482
- proxies = " http://my.test.proxy.example.com" ,
483
+ proxy = " http://my.test.proxy.example.com" ,
483
484
transport = httpx.HTTPTransport(local_address = " 0.0.0.0" ),
484
485
),
485
486
)
You can’t perform that action at this time.
0 commit comments