From 5900ac96019a50f1308858de203e2f156bd77394 Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Wed, 8 Oct 2025 10:18:26 -0400 Subject: [PATCH] api_key -> auth_credential in watsonx --- llama_stack/providers/remote/inference/watsonx/watsonx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/providers/remote/inference/watsonx/watsonx.py b/llama_stack/providers/remote/inference/watsonx/watsonx.py index d04472936..654d61f34 100644 --- a/llama_stack/providers/remote/inference/watsonx/watsonx.py +++ b/llama_stack/providers/remote/inference/watsonx/watsonx.py @@ -22,7 +22,7 @@ class WatsonXInferenceAdapter(LiteLLMOpenAIMixin): LiteLLMOpenAIMixin.__init__( self, litellm_provider_name="watsonx", - api_key_from_config=config.api_key.get_secret_value() if config.api_key else None, + api_key_from_config=config.auth_credential.get_secret_value() if config.auth_credential else None, provider_data_api_key_field="watsonx_api_key", ) self.available_models = None