forked from cline/cline
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add IBM watsonx AI provider in the list of providers to connect to IBM hosted LLMs #8321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
PrasangAPrajapati
wants to merge
33
commits into
RooCodeInc:main
Choose a base branch
from
PrasangAPrajapati:watsonx-ai-provider
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,889
−21
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
2b9cc51
Add IBM watsonx AI provider in the list of AI providers
PrasangAPrajapati a185820
Update webview-ui/src/i18n/locales/es/settings.json
PrasangAPrajapati 4af2f1b
Update webview-ui/src/components/settings/providers/ibm-watsonx.tsx
PrasangAPrajapati c28dd6d
Update webview-ui/src/i18n/locales/fr/settings.json
PrasangAPrajapati a0c38b0
Update webview-ui/src/i18n/locales/zh-TW/settings.json
PrasangAPrajapati 9d146dc
Update webview-ui/src/i18n/locales/tr/settings.json
PrasangAPrajapati 821f818
remove double project ID validation
PrasangAPrajapati d9f8e51
address roomote feedback and translation of strings for all locales
PrasangAPrajapati 607da8e
fix model options parameterds
PrasangAPrajapati a28d1ab
update if condition for platform validation and update apikey casing..
PrasangAPrajapati f102a03
add watsonxPassword to the SECRET_KEYS
PrasangAPrajapati 32636cb
Adjust diff description and send values to the post message
PrasangAPrajapati 791d098
add localized string errors and placeholders, refresh models when clo…
PrasangAPrajapati 440ee20
add missing polish translations for watsonx
PrasangAPrajapati 1a0a8ce
localize labels and few minor fixes
PrasangAPrajapati 11090ca
Update webview-ui/src/components/settings/providers/ibm-watsonx.tsx
PrasangAPrajapati b4058ed
common region-to-url function and localize more strings
PrasangAPrajapati 962a7cb
Update webview-ui/src/components/settings/providers/ibm-watsonx.tsx
PrasangAPrajapati 26e7aa7
post message requestWatsonxModels by checking condition
PrasangAPrajapati 3cc95c1
update feedback from roomote
PrasangAPrajapati f34d191
remove REGION_TO_URL duplication and fix event handler
PrasangAPrajapati 59b1de9
refactor: reduce IBM watsonx provider bloat and improve code quality
daniel-lxs df04f67
fix: remove unrelated IBM watsonx special case from diff settings
daniel-lxs 69c3670
fix region and fix test for cloudpak
PrasangAPrajapati 8839606
Add IBM watsonx AI provider in the list of AI providers
PrasangAPrajapati 98875e3
address roomote feedback and translation of strings for all locales
PrasangAPrajapati 6ebad08
feat: convert Chutes to dynamic/router provider (#8980)
roomote[bot] 8224ed3
Add IBM watsonx AI provider in the list of AI providers
PrasangAPrajapati 87d55a3
feat: convert Chutes to dynamic/router provider (#8980)
roomote[bot] e7bc8c1
Add IBM watsonx AI provider in the list of AI providers
PrasangAPrajapati fff078a
feat: convert Chutes to dynamic/router provider (#8980)
roomote[bot] a1221b1
fix chutes provider
PrasangAPrajapati f7d307d
revert diff settings to original
PrasangAPrajapati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import type { ModelInfo } from "../model.js" | ||
|
|
||
| export const REGION_TO_URL: Record<string, string> = { | ||
| Dallas: "https://us-south.ml.cloud.ibm.com", | ||
| Frankfurt: "https://eu-de.ml.cloud.ibm.com", | ||
| London: "https://eu-gb.ml.cloud.ibm.com", | ||
| Tokyo: "https://jp-tok.ml.cloud.ibm.com", | ||
| Sydney: "https://au-syd.ml.cloud.ibm.com", | ||
| Toronto: "https://ca-tor.ml.cloud.ibm.com", | ||
| Mumbai: "https://ap-south-1.aws.wxai.ibm.com", | ||
| } | ||
|
|
||
| /** | ||
| * Models that are not suitable for general text inference tasks. | ||
| * These are typically guard/safety models used for content moderation. | ||
| */ | ||
| export const WATSONX_NON_INFERENCE_MODELS = [ | ||
| "meta-llama/llama-guard-3-11b-vision", | ||
| "ibm/granite-guardian-3-8b", | ||
| "ibm/granite-guardian-3-2b", | ||
| ] as const | ||
|
|
||
| export type WatsonxAIModelId = keyof typeof watsonxModels | ||
| export const watsonxDefaultModelId = "ibm/granite-3-3-8b-instruct" | ||
|
|
||
| // Common model properties | ||
| export const baseModelInfo: ModelInfo = { | ||
| maxTokens: 8192, | ||
| contextWindow: 128000, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| } | ||
|
|
||
| export const watsonxModels = { | ||
| // IBM Granite model | ||
| "ibm/granite-3-3-8b-instruct": { | ||
| ...baseModelInfo, | ||
| }, | ||
| } as const satisfies Record<string, ModelInfo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.