mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +00:00
fix var name
This commit is contained in:
parent
61cd8540de
commit
04825e854c
2 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue