diff --git a/src/bentoml/client.py b/src/bentoml/client.py index 65fb5772c6..4b08fd4514 100644 --- a/src/bentoml/client.py +++ b/src/bentoml/client.py @@ -34,6 +34,9 @@ def __init__(self, svc: Service, server_url: str): setattr( self, name, functools.partial(self._sync_call, _bentoml_api=api) ) + + for name, api in self._svc.apis.items(): + if not hasattr(self, f"async_{name}"): setattr( self, f"async_{name}",