Updates watsonx API key placeholder

Signed-off-by: NoeSamaille <noe.samaille@ibm.com>
This commit is contained in:
NoeSamaille 2024-08-21 10:45:42 +02:00
parent 29bf30e2ef
commit 37702e17e2
2 changed files with 2 additions and 3 deletions

View file

@ -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",

View file

@ -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
},
{