Skip to content

Commit 4eb9821

Browse files
committed
Updates HTTPX client docs
1 parent acb1c1b commit 4eb9821

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/source/user_guide/large_language_model/aqua_client.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,12 @@ The following examples demonstrate how to perform the same operations using the
131131
print(response)
132132
133133
134-
HTTPX Client Integration with OCI Authentication (HttpxOCIAuth)
135-
================================================================
134+
HTTPX Client Integration with OCI Authentication
135+
================================================
136136

137137
.. versionadded:: 2.13.1
138138

139-
In recent updates to the client, a new class, ``HttpxOCIAuth``, has been introduced.
140-
This class allows signing of HTTPX requests using OCI signers, making the HTTPX client compatible
141-
with the LLM models deployed on the OCI Model Deployment service. With this integration, you can use
142-
HTTPX-based clients with any compatible third-party libraries (e.g., the OpenAi client).
139+
The latest client release now includes streamlined support for OCI authentication with HTTPX. Our helper functions for creating synchronous and asynchronous HTTPX clients automatically configure authentication based on your default settings. Additionally, you can pass extra keyword arguments to further customize the HTTPX client (e.g., timeouts, proxies, etc.), making it fully compatible with OCI Model Deployment service and third-party libraries (e.g., the OpenAI client).
143140

144141
Usage
145142
-----
@@ -151,7 +148,7 @@ Usage
151148
152149
ads.set_auth(auth="security_token", profile="<replace-with-your-profile>")
153150
154-
client = ads.aqua.get_httpx_client()
151+
client = ads.aqua.get_httpx_client(timeout=10.0)
155152
156153
response = client.post(
157154
url="https://<MD_OCID>/predict",
@@ -172,4 +169,4 @@ Usage
172169
173170
ads.set_auth(auth="security_token", profile="<replace-with-your-profile>")
174171
175-
async_client = client = ads.aqua.get_async_httpx_client()
172+
async_client = client = ads.aqua.get_async_httpx_client(timeout=10.0)

0 commit comments

Comments
 (0)