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 @@ -654,18 +654,19 @@ can also get all the extra fields on the Pydantic model as a dict with
654
654
655
655
You can directly override the [ httpx client] ( https://www.python-httpx.org/api/#client ) to customize it for your use case, including:
656
656
657
- - Support for proxies
658
- - Custom transports
657
+ - Support for [ proxies] ( https://www.python-httpx.org/advanced/proxies/ )
658
+ - Custom [ transports] ( https://www.python-httpx.org/advanced/transports/ )
659
659
- Additional [ advanced] ( https://www.python-httpx.org/advanced/clients/ ) functionality
660
660
661
661
``` python
662
+ import httpx
662
663
from anthropic import Anthropic, DefaultHttpxClient
663
664
664
665
client = Anthropic(
665
666
# Or use the `ANTHROPIC_BASE_URL` env var
666
667
base_url = " http://my.test.server.example.com:8083" ,
667
668
http_client = DefaultHttpxClient(
668
- proxies = " http://my.test.proxy.example.com" ,
669
+ proxy = " http://my.test.proxy.example.com" ,
669
670
transport = httpx.HTTPTransport(local_address = " 0.0.0.0" ),
670
671
),
671
672
)
You can’t perform that action at this time.
0 commit comments