You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(client-sdks): guard call_api patch for stainless SDK fallback compatibility
The call_api patch in OGXAsLibraryClient.__init__ unconditionally
accessed self.api_client.call_api, but the stainless SDK OgxClient
does not have an api_client attribute. Guard with hasattr checks so
the fallback to the stainless SDK (which uses the request() override
instead) still works.
Also add try/except fallback for the ogx_open_client.rest import in
_async_in_process_call to avoid ModuleNotFoundError when only the
stainless SDK is installed.
Signed-off-by: E Geiger <egeiger@redhat.com>
0 commit comments