fix var name

This commit is contained in:
Sumit Jaiswal 2025-06-04 20:49:13 +05:30
parent 61cd8540de
commit 04825e854c
No known key found for this signature in database
GPG key ID: A4604B39D64D6AEC
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ class WatsonXConfig(BaseModel):
default_factory=lambda: os.getenv("WATSONX_PROJECT_ID"),
description="The Project ID key, only needed of using the hosted service",
)
model_id: str | None = Field(
health_check_model_id: str | None = Field(
default_factory=lambda: os.getenv("WATSONX_HEALTH_CHECK_MODEL_ID", "ibm/granite-3-8b-instruct"),
description="The Model ID key, only needed of using the hosted service",
)

View file

@ -91,7 +91,7 @@ class WatsonXInferenceAdapter(Inference, ModelRegistryHelper):
HealthResponse: A dictionary containing the health status.
"""
try:
client_model = self._get_client(self._config.model_id)
client_model = self._get_client(self._config.health_check_model_id)
client_model.get_details()
return HealthResponse(status=HealthStatus.OK)
except Exception as ex: