Skip to content

Commit cca1f66

Browse files
docs(readme): fix http client proxies example
1 parent f7caf20 commit cca1f66

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,19 @@ can also get all the extra fields on the Pydantic model as a dict with
279279

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

282-
- Support for proxies
283-
- Custom transports
282+
- Support for [proxies](https://www.python-httpx.org/advanced/proxies/)
283+
- Custom [transports](https://www.python-httpx.org/advanced/transports/)
284284
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
285285

286286
```python
287+
import httpx
287288
from contextual import ContextualAI, DefaultHttpxClient
288289

289290
client = ContextualAI(
290291
# Or use the `CONTEXTUAL_AI_BASE_URL` env var
291292
base_url="http://my.test.server.example.com:8083",
292293
http_client=DefaultHttpxClient(
293-
proxies="http://my.test.proxy.example.com",
294+
proxy="http://my.test.proxy.example.com",
294295
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
295296
),
296297
)

0 commit comments

Comments
 (0)