-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add IBM watsonx AI provider in the list of providers to connect to IBM hosted LLMs #8092
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
Closed
PrasangAPrajapati
wants to merge
104
commits into
RooCodeInc:main
from
PrasangAPrajapati:watsonx-ai-integration
Closed
Changes from all commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
a8e5a71
add ibm-cloud watsonx AI npm dependency
PrasangAPrajapati feda684
add IBM watsonx AI provider and IBM watsonx embedded AI provider for …
PrasangAPrajapati ad4b778
Merge branch 'main' into watsonx-ai-integration
PrasangAPrajapati 0362aae
add watsonx missing provider in the typs
PrasangAPrajapati 408b554
fix lock file
PrasangAPrajapati 2129d11
fix providers issue
PrasangAPrajapati dd2eb49
fix providers issue
PrasangAPrajapati 13f49fe
fix providers issue
PrasangAPrajapati 5574351
add refresh models button to get the models dynamically
PrasangAPrajapati 4d9fbb0
allow any type to handle watsonx
PrasangAPrajapati 37c5584
add support for IBM Cloud Pak for Data
PrasangAPrajapati f1c700b
add IBM cloud pak for data support for embedded watsonx models for co…
PrasangAPrajapati 6c269c1
add ibm-cloud-sdk-core dependency
PrasangAPrajapati 669240a
set username to empty string instead of undefined
PrasangAPrajapati f22f692
finish junit tests and naming convention changes to provider
PrasangAPrajapati ea8e61c
pass empty model id for default
PrasangAPrajapati 1341c43
add timestamp script to generate vsix with timestamp added
PrasangAPrajapati 99bdf52
fix margins and text
PrasangAPrajapati e196ea1
update IBM watsonx embeddeer for code indeix
PrasangAPrajapati 97c98ac
change it to retrieve models
PrasangAPrajapati 5c1f337
merge main into watsonx-ai-integration
PrasangAPrajapati f43b197
minor tweaks to fix for merge
PrasangAPrajapati 8176fcc
add ibm-cloud watsonx AI npm dependency
PrasangAPrajapati 2beaa34
rebase to main
PrasangAPrajapati 792b037
add watsonx missing provider in the typs
PrasangAPrajapati 94017b4
fix lock file
PrasangAPrajapati 411cf01
fix providers issue
PrasangAPrajapati eb0c60e
fix providers issue
PrasangAPrajapati c821b5e
fix providers issue
PrasangAPrajapati 24697d1
add refresh models button to get the models dynamically
PrasangAPrajapati 196828e
allow any type to handle watsonx
PrasangAPrajapati 0e44af6
add support for IBM Cloud Pak for Data
PrasangAPrajapati a190c73
add IBM cloud pak for data support for embedded watsonx models for co…
PrasangAPrajapati 3f4d5bc
add ibm-cloud-sdk-core dependency
PrasangAPrajapati d399992
set username to empty string instead of undefined
PrasangAPrajapati 3bf2038
finish junit tests and naming convention changes to provider
PrasangAPrajapati 7d248cf
pass empty model id for default
PrasangAPrajapati a4c9b73
add timestamp script to generate vsix with timestamp added
PrasangAPrajapati 13c8137
fix margins and text
PrasangAPrajapati 89495dd
update IBM watsonx embeddeer for code indeix
PrasangAPrajapati 7db1909
change it to retrieve models
PrasangAPrajapati f8732f3
minor tweaks to fix for merge
PrasangAPrajapati 5e12380
minor rebase changes
PrasangAPrajapati e316c89
minor rebase changes remove duplicates
PrasangAPrajapati 2529892
Merge branch 'watsonx-ai-integration' of https://github.com/PrasangAP…
PrasangAPrajapati 59ee5aa
Merge branch 'watsonx-ai-integration' of https://github.com/PrasangAP…
PrasangAPrajapati 67e406d
Merge branch 'watsonx-ai-integration' of https://github.com/PrasangAP…
PrasangAPrajapati b7bd92f
Merge branch 'main' into watsonx-ai-integration
PrasangAPrajapati 4723c84
Merge branch 'main' into watsonx-ai-integration
PrasangAPrajapati 3484642
Merge branch 'main' into watsonx-ai-integration
PrasangAPrajapati 24f0d45
update pnpm lock file
PrasangAPrajapati 91706f4
fix code indexing and remove duplicates
PrasangAPrajapati c8196d2
add missing keys in each languages for translations
PrasangAPrajapati 862402c
add missing keys in each languages for translations
PrasangAPrajapati 8f10c55
fix junit tests for watsonx provider and embedded watsonx provider
PrasangAPrajapati 3867b84
fix junit tests for watsonx provider and embedded watsonx provider
PrasangAPrajapati ea2408f
Address roomote feedback and remove console log statement that were a…
PrasangAPrajapati 1a8239c
Address roomote feedback for better error handling
PrasangAPrajapati 9ddfd95
revert accidental changes
PrasangAPrajapati c1a7eb1
revert accidental changes
PrasangAPrajapati 8e0e30c
revert accidental changes
PrasangAPrajapati d337bfc
Update src/api/providers/fetchers/watsonx.ts
PrasangAPrajapati 59380cb
Update src/i18n/locales/pl/embeddings.json
PrasangAPrajapati 87f1e1a
Update src/i18n/locales/ru/embeddings.json
PrasangAPrajapati fc7f146
Update webview-ui/src/components/settings/providers/WatsonxAI.tsx
PrasangAPrajapati 7b1be53
Update webview-ui/src/i18n/locales/ca/settings.json
PrasangAPrajapati 43e5e90
Update webview-ui/src/i18n/locales/de/settings.json
PrasangAPrajapati 0157a36
Update webview-ui/src/i18n/locales/de/settings.json
PrasangAPrajapati 7d2a819
Update webview-ui/src/i18n/locales/nl/settings.json
PrasangAPrajapati 8bdd84f
Update webview-ui/src/i18n/locales/nl/settings.json
PrasangAPrajapati 395406f
Update webview-ui/src/i18n/locales/pt-BR/settings.json
PrasangAPrajapati e5623b0
Update webview-ui/src/i18n/locales/tr/settings.json
PrasangAPrajapati e3c9df1
fix roo-mote suggestions
PrasangAPrajapati c284d60
remove the watsonx models which does not support text_chat
PrasangAPrajapati a8ede1f
re-use the openAI messages conversion
PrasangAPrajapati 0f8495f
Merge branch 'main' into watsonx-ai-integration
PrasangAPrajapati aa27d16
revert some formatting changes
PrasangAPrajapati 1695c67
pull origin
PrasangAPrajapati ad876bc
remove duplicate definition and fix test
PrasangAPrajapati 82588ce
fix providers issue
PrasangAPrajapati 67c1fac
add refresh models button to get the models dynamically
PrasangAPrajapati a48da10
add IBM cloud pak for data support for embedded watsonx models for co…
PrasangAPrajapati 64dc0b2
finish junit tests and naming convention changes to provider
PrasangAPrajapati 636604b
update IBM watsonx embeddeer for code indeix
PrasangAPrajapati 415bc02
add IBM watsonx AI provider and IBM watsonx embedded AI provider for …
PrasangAPrajapati 63d71d4
add refresh models button to get the models dynamically
PrasangAPrajapati 4bd8938
add IBM cloud pak for data support for embedded watsonx models for co…
PrasangAPrajapati a25bd4b
finish junit tests and naming convention changes to provider
PrasangAPrajapati 7d2136c
update IBM watsonx embeddeer for code indeix
PrasangAPrajapati c72a633
fix code indexing and remove duplicates
PrasangAPrajapati 709f81f
add missing keys in each languages for translations
PrasangAPrajapati 3343d52
revert some formatting changes
PrasangAPrajapati b160e96
format watsonx
PrasangAPrajapati c709427
change variable
PrasangAPrajapati 90147b2
remove duplicate imports
PrasangAPrajapati 2be16a1
remove duplicate imports
PrasangAPrajapati 5c16cdf
run format
PrasangAPrajapati 7813862
remove not needed file
PrasangAPrajapati f2a5804
Revert unintended changes to featherless.ts, codeSearchTool.ts and c-…
PrasangAPrajapati 93d86cb
Minor UI changes to watsonx AI
PrasangAPrajapati d2edf65
update authentication for IBM Cloud Pak for Data
PrasangAPrajapati 3bcfe6b
Merge branch 'main' into watsonx-ai-integration
PrasangAPrajapati 798f3cc
Merge branch 'main' into watsonx-ai-integration
PrasangAPrajapati bfb97a3
Revert "Merge branch 'main' into watsonx-ai-integration"
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
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,19 @@ | ||
| import type { ModelInfo } from "../model.js" | ||
|
|
||
| export type WatsonxAIModelId = keyof typeof watsonxAiModels | ||
| export const watsonxAiDefaultModelId = "" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P3] Empty default model id can lead to runtime calls with an empty model id if validation is bypassed. Prefer a safe explicit default (e.g., ibm/granite-3-3-8b-instruct) or require selection. |
||
|
|
||
| // Common model properties | ||
| export const baseModelInfo: ModelInfo = { | ||
| maxTokens: 8192, | ||
| contextWindow: 131072, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| } | ||
|
|
||
| export const watsonxAiModels = { | ||
PrasangAPrajapati marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // IBM Granite model | ||
| "ibm/granite-3-3-8b-instruct": { | ||
| ...baseModelInfo, | ||
| }, | ||
PrasangAPrajapati marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } as const satisfies Record<string, ModelInfo> | ||
Oops, something went wrong.
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.