8000 docs(readme): fix http client proxies example (#778) · anthropics/anthropic-sdk-python@e0e3667 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0e3667

Browse files
docs(readme): fix http client proxies example (#778)
1 parent fbcf6ed commit e0e3667

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,18 +654,19 @@ can also get all the extra fields on the Pydantic model as a dict with
654654

655655
You can directly override the [httpx client](https://www.python-httpx.org/api/#client) to customize it for your use case, including:
656656

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/)
659659
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
660660

661661
```python
662+
import httpx
662663
from anthropic import Anthropic, DefaultHttpxClient
663664

664665
client = Anthropic(
665666
# Or use the `ANTHROPIC_BASE_URL` env var
666667
base_url="http://my.test.server.example.com:8083",
667668
http_client=DefaultHttpxClient(
668-
proxies="http://my.test.proxy.example.com",
669+
proxy="http://my.test.proxy.example.com",
669670
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
670671
),
671672
)

0 commit comments

Comments
 (0)
0