-
Notifications
You must be signed in to change notification settings - Fork 60
Add HttpxOCIAuth Integration Documentation for HTTPX Clients #1109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…racle/accelerated-data-science into aqua_client_httpx_improvements
ads/aqua/client/client.py
Outdated
| Parameters | ||
| ---------- | ||
| **kwargs : Any | ||
| Arbitrary keyword arguments for configuring the httpx.Client. An optional 'auth' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keyword arguments supported by httpx.Client.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ads/aqua/client/client.py
Outdated
|
|
||
| def get_httpx_client(**kwargs: Any) -> httpx.Client: | ||
| """ | ||
| Creates and returns a synchronous httpx Client configured with OCI authentication. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creates and returns a synchronous httpx Client configured with OCI authentication signer based the authentication type setup using ads.set_auth method or env variable OCI_IAM_TYPE. More information - https://accelerated-data-science.readthedocs.io/en/stable/user_guide/cli/authentication.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
I think |
Overview
This PR updates the documentation to include a new section for the
HttpxOCIAuthclass.The HttpxOCIAuth class enables HTTPX clients to sign requests using OCI signers, making them compatible
with OCI Model Deployment services and LLM models. This integration facilitates the use of OCI authentication
with HTTPX-based clients and extends compatibility to third-party libraries such as the OpenAi client.
Changes
ads.set_auth()with defaultclient_kwargs = {"service_endpoint": OCI_ODSC_SERVICE_ENDPOINT}