Update CLI reference and add typing

This commit is contained in:
Celina Hanouti 2024-09-09 17:49:07 +02:00
parent b96e705680
commit eee6c69f46
3 changed files with 6 additions and 6 deletions

View file

@ -41,7 +41,7 @@ class LocalTGIAdapter(Inference):
def client(self) -> InferenceClient:
return InferenceClient(model=self.config.url, token=self.config.api_token)
def _get_endpoint_info(self):
def _get_endpoint_info(self) -> Dict[str, Any]:
return {**self.client.get_endpoint_info(), "inference_url": self.config.url}
async def initialize(self) -> None: