ArizeClient exposes a lot of arguments for SSL, eg request_verify or adding custom CA files), which is very helpful for corporate or development environments. However, this is not working for REST (only for Feather and gRPC), which blocks a lot of the new v8 features from being used. In
|
cfg = gen.Configuration(host=self._sdk_config.api_url) |
where the API client is created, only the host is passed from the SDK entrypoint, and all other settings revert to default.
You can work around this by just patching the client directly:
api_client = client._gen_client_factory.get_client()
api_client.configuration.verify_ssl = False # Or whatever feature you need
api_client.rest_client = rest.RESTClientObject(api_client.configuration)
But for production use or maintainability this is obviously pretty bad. Can the SSL verify and other similar features in SDK config be passed down to the REST client as well?
ArizeClientexposes a lot of arguments for SSL, egrequest_verifyor adding custom CA files), which is very helpful for corporate or development environments. However, this is not working for REST (only for Feather and gRPC), which blocks a lot of the new v8 features from being used. Inclient_python/src/arize/_client_factory.py
Line 46 in d835a7e
You can work around this by just patching the client directly:
But for production use or maintainability this is obviously pretty bad. Can the SSL verify and other similar features in SDK config be passed down to the REST client as well?