updated the string to watsonx

This commit is contained in:
Sajikumar JS 2025-04-25 11:03:21 +05:30
parent 6fe8b292b1
commit 2f498ad776
7 changed files with 16 additions and 16 deletions

View file

@ -22,11 +22,11 @@ class WatsonXProviderDataValidator(BaseModel):
class WatsonXConfig(BaseModel):
url: str = Field(
default_factory=lambda: os.getenv("WATSONX_BASE_URL", "https://us-south.ml.cloud.ibm.com"),
description="A base url for accessing the Watsonx.ai",
description="A base url for accessing the watsonx.ai",
)
api_key: Optional[SecretStr] = Field(
default_factory=lambda: os.getenv("WATSONX_API_KEY"),
description="The Watsonx API key, only needed of using the hosted service",
description="The watsonx API key, only needed of using the hosted service",
)
project_id: Optional[str] = Field(
default_factory=lambda: os.getenv("WATSONX_PROJECT_ID"),

View file

@ -50,7 +50,7 @@ class WatsonXInferenceAdapter(Inference, ModelRegistryHelper):
def __init__(self, config: WatsonXConfig) -> None:
ModelRegistryHelper.__init__(self, MODEL_ENTRIES)
print(f"Initializing WatsonXInferenceAdapter({config.url})...")
print(f"Initializing watsonx InferenceAdapter({config.url})...")
self._config = config