@@ -798,17 +798,14 @@ async def embeddings(
798
798
799
799
def get_httpx_client (** kwargs : Any ) -> httpx .Client :
800
800
"""
801
- Creates and returns a synchronous httpx Client configured with OCI authentication.
802
-
803
- This function checks if an 'auth' keyword argument is provided. If not, it instantiates
804
- the default OCI authentication (HttpxOCIAuth) and injects it into the client configuration.
805
- Any additional keyword arguments are passed directly to the httpx.Client constructor.
801
+ Creates and returns a synchronous httpx Client configured with OCI authentication signer based
802
+ the authentication type setup using ads.set_auth method or env variable OCI_IAM_TYPE.
803
+ More information - https://accelerated-data-science.readthedocs.io/en/stable/user_guide/cli/authentication.html
806
804
807
805
Parameters
808
806
----------
809
807
**kwargs : Any
810
- Arbitrary keyword arguments for configuring the httpx.Client. An optional 'auth'
811
- argument can be provided to override the default OCI authentication.
808
+ Keyword arguments supported by httpx.Client
812
809
813
810
Returns
814
811
-------
@@ -821,17 +818,14 @@ def get_httpx_client(**kwargs: Any) -> httpx.Client:
821
818
822
819
def get_async_httpx_client (** kwargs : Any ) -> httpx .AsyncClient :
823
820
"""
824
- Creates and returns an asynchronous httpx AsyncClient configured with OCI authentication.
825
-
826
- This function checks if an 'auth' keyword argument is provided. If not, it instantiates
827
- the default OCI authentication (HttpxOCIAuth) and injects it into the client configuration.
828
- Any additional keyword arguments are passed directly to the httpx.AsyncClient constructor.
821
+ Creates and returns a synchronous httpx Client configured with OCI authentication signer based
822
+ the authentication type setup using ads.set_auth method or env variable OCI_IAM_TYPE.
823
+ More information - https://accelerated-data-science.readthedocs.io/en/stable/user_guide/cli/authentication.html
829
824
830
825
Parameters
831
826
----------
832
827
**kwargs : Any
833
- Arbitrary keyword arguments for configuring the httpx.AsyncClient. An optional 'auth'
834
- argument can be provided to override the default OCI authentication.
828
+ Keyword arguments supported by httpx.Client
835
829
836
830
Returns
837
831
-------
0 commit comments