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 @@ -624,18 +624,19 @@ can also get all the extra fields on the Pydantic model as a dict with
624
624
625
625
You can directly override the [ httpx client] ( https://www.python-httpx.org/api/#client ) to customize it for your use case, including:
626
626
627
- - Support for proxies
628
- - Custom transports
627
+ - Support for [ proxies] ( https://www.python-httpx.org/advanced/proxies/ )
628
+ - Custom [ transports] ( https://www.python-httpx.org/advanced/transports/ )
629
629
- Additional [ advanced] ( https://www.python-httpx.org/advanced/clients/ ) functionality
630
630
631
631
``` python
632
+ import httpx
632
633
from openai import OpenAI, DefaultHttpxClient
633
634
634
635
client = OpenAI(
635
636
# Or use the `OPENAI_BASE_URL` env var
636
637
base_url = " http://my.test.server.example.com:8083/v1" ,
637
638
http_client = DefaultHttpxClient(
638
- proxies = " http://my.test.proxy.example.com" ,
639
+ proxy = " http://my.test.proxy.example.com" ,
639
640
transport = httpx.HTTPTransport(local_address = " 0.0.0.0" ),
640
641
),
641
642
)
You can’t perform that action at this time.
0 commit comments