updates to fix pre-commit checks

This commit is contained in:
Sumit Jaiswal 2025-06-01 17:51:02 +05:30
parent 6ec2ed4196
commit 319300fe24
No known key found for this signature in database
GPG key ID: A4604B39D64D6AEC
2 changed files with 15 additions and 10 deletions

View file

@ -91,14 +91,9 @@ class WatsonXInferenceAdapter(Inference, ModelRegistryHelper):
try:
model = self._get_client(self._config.model_id)
model.generate("test")
return HealthResponse(
status=HealthStatus.OK
)
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 failed: {str(ex)}")
async def completion(
self,