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 @@ -279,18 +279,19 @@ can also get all the extra fields on the Pydantic model as a dict with
279
279
280
280
You can directly override the [ httpx client] ( https://www.python-httpx.org/api/#client ) to customize it for your use case, including:
281
281
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/ )
284
284
- Additional [ advanced] ( https://www.python-httpx.org/advanced/clients/ ) functionality
285
285
286
286
``` python
287
+ import httpx
287
288
from contextual import ContextualAI, DefaultHttpxClient
288
289
289
290
client = ContextualAI(
290
291
# Or use the `CONTEXTUAL_AI_BASE_URL` env var
291
292
base_url = " http://my.test.server.example.com:8083" ,
292
293
http_client = DefaultHttpxClient(
293
- proxies = " http://my.test.proxy.example.com" ,
294
+ proxy = " http://my.test.proxy.example.com" ,
294
295
transport = httpx.HTTPTransport(local_address = " 0.0.0.0" ),
295
296
),
296
297
)
You can’t perform that action at this time.
0 commit comments