Updates watsonx API key placeholder
Signed-off-by: NoeSamaille <noe.samaille@ibm.com>
This commit is contained in:
parent
29bf30e2ef
commit
37702e17e2
2 changed files with 2 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue