From 37702e17e27f00b2e7ea57a347ea38b263803acc Mon Sep 17 00:00:00 2001 From: NoeSamaille Date: Wed, 21 Aug 2024 10:45:42 +0200 Subject: [PATCH] Updates watsonx API key placeholder Signed-off-by: NoeSamaille --- core/llm/llms/WatsonX.ts | 3 +-- gui/src/pages/AddNewModel/configs/providers.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/llm/llms/WatsonX.ts b/core/llm/llms/WatsonX.ts index 88a0badeb..6a40897cd 100644 --- a/core/llm/llms/WatsonX.ts +++ b/core/llm/llms/WatsonX.ts @@ -43,7 +43,6 @@ class WatsonX extends BaseLLM { }; } else { // watsonx Software - console.log(this.watsonxCreds) if ( !this.watsonxCreds?.includes(":") ) { @@ -54,7 +53,7 @@ class WatsonX extends BaseLLM { }; } else { // Using username/password auth - const userPass = this.watsonxCreds?.split(":") + const userPass = this.watsonxCreds?.split(":"); const wxToken = await ( await fetch(`${this.watsonxUrl}/icp4d-api/v1/authorize`, { method: "POST", diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index 4e2e08356..36cc26743 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -503,7 +503,7 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo inputType: "text", key: "watsonxCreds", label: "watsonx API key", - placeholder: "Enter your API Key", + placeholder: "Enter your API key (SaaS) or ZenApiKey (Software)", required: true }, {