diff --git a/llama_stack/providers/remote/inference/watsonx/watsonx.py b/llama_stack/providers/remote/inference/watsonx/watsonx.py index a34f007a1..d13ee58fe 100644 --- a/llama_stack/providers/remote/inference/watsonx/watsonx.py +++ b/llama_stack/providers/remote/inference/watsonx/watsonx.py @@ -89,11 +89,11 @@ class WatsonXInferenceAdapter(Inference, ModelRegistryHelper): HealthResponse: A dictionary containing the health status. """ try: - model = self._get_client(self._config.model_id) - model.generate("test") + client_model = self._get_client(self._config.model_id) + client_model.get_details() return HealthResponse(status=HealthStatus.OK) except Exception as ex: - return HealthResponse(status=HealthStatus.ERROR, message=f"Health check failed: {str(ex)}") + return HealthResponse(status=HealthStatus.ERROR, message=f"Health check failure reason: {str(ex)}") async def completion( self,