diff --git a/core/llm/llms/WatsonX.ts b/core/llm/llms/WatsonX.ts index ec6751622..c18df0b3e 100644 --- a/core/llm/llms/WatsonX.ts +++ b/core/llm/llms/WatsonX.ts @@ -167,7 +167,7 @@ class WatsonX extends BaseLLM { body: JSON.stringify({ "input": messages[messages.length - 1].content, "parameters": { - "decoding_method": "greedykugi", + "decoding_method": "greedy", "max_new_tokens": options.maxTokens ?? 1024, "min_new_tokens": 1, "stop_sequences": [], diff --git a/docs/docs/reference/Model Providers/assets/Watsonx1.gif b/docs/docs/reference/Model Providers/assets/Watsonx1.gif new file mode 100644 index 000000000..4d12fd7b4 Binary files /dev/null and b/docs/docs/reference/Model Providers/assets/Watsonx1.gif differ diff --git a/docs/docs/reference/Model Providers/watsonx.md b/docs/docs/reference/Model Providers/watsonx.md index f8a7c2b33..1d672fee3 100644 --- a/docs/docs/reference/Model Providers/watsonx.md +++ b/docs/docs/reference/Model Providers/watsonx.md @@ -4,14 +4,12 @@ Watsonx, developed by IBM, offers a variety of pre-trained AI foundation models ## Setup -To access the Watsonx models first create an instance in the [IBM cloud]() which supports watsonx studio. +To access the Watsonx models, create an instance in the [IBM cloud](https://cloud.ibm.com) which supports watsonx studio. Then to create a project refer [this](https://www.ibm.com/docs/en/watsonx/saas?topic=projects-creating-project). You can set it up in two different ways : -1. Using API key -2. Using Credentials - -## Useage +1. **Using API** : Create Your IBM cloud API key by referring [this](https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=cli-creating-your-cloud-api-key). +2. **Using Credentials** : Use your Username and Password to authenticate - - \ No newline at end of file +## Usage +![usage-gif](../Model%20Providers/assets/Watsonx1.gif) \ No newline at end of file diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index 9f2ea0a80..020740ce2 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -515,8 +515,7 @@ After it's up and running, you can start using Continue.`, refPage: "watsonX", description: "Explore foundation models from IBM and other third-parties depending on your use case.", - longDescription: `Watsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks. -[Steps to setup WatsonX provider](watsonx.md) `, + longDescription: `Watsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.`, collectInputFor: [ { inputType: "text", @@ -547,7 +546,7 @@ After it's up and running, you can start using Continue.`, { inputType: "text", key: "watsonxUsername", - label: "WatsonX username", + label: "WatsonX Username", placeholder: "Enter your Username", required: true, isWatsonxAuthenticatedByCredentials: true