-
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
Changes from 22 commits
a8e5a71
feda684
ad4b778
0362aae
408b554
2129d11
dd2eb49
13f49fe
5574351
4d9fbb0
37c5584
f1c700b
6c269c1
669240a
f22f692
ea8e61c
1341c43
99bdf52
e196ea1
97c98ac
5c1f337
f43b197
8176fcc
2beaa34
792b037
94017b4
411cf01
eb0c60e
c821b5e
24697d1
196828e
0e44af6
a190c73
3f4d5bc
d399992
3bf2038
7d248cf
a4c9b73
13c8137
89495dd
7db1909
f8732f3
5e12380
e316c89
2529892
59ee5aa
67e406d
b7bd92f
4723c84
3484642
24f0d45
91706f4
c8196d2
862402c
8f10c55
3867b84
ea2408f
1a8239c
9ddfd95
c1a7eb1
8e0e30c
d337bfc
59380cb
87f1e1a
fc7f146
7b1be53
43e5e90
0157a36
7d2a819
8bdd84f
395406f
e5623b0
e3c9df1
c284d60
a8ede1f
0f8495f
aa27d16
1695c67
ad876bc
82588ce
67c1fac
a48da10
64dc0b2
636604b
415bc02
63d71d4
4bd8938
a25bd4b
7d2136c
c72a633
709f81f
3343d52
b160e96
c709427
90147b2
2be16a1
5c16cdf
7813862
f2a5804
93d86cb
d2edf65
3bcfe6b
798f3cc
bfb97a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ | |
| - [简体中文](locales/zh-CN/README.md) | ||
| - [繁體中文](locales/zh-TW/README.md) | ||
| - ... | ||
| </details> | ||
| </details> | ||
|
|
||
| --- | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| 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: 131072, | ||
| contextWindow: 131072, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| supportsReasoningEffort: true, | ||
| supportsReasoningBudget: false, | ||
| requiredReasoningBudget: false, | ||
| inputPrice: 5.22, | ||
| outputPrice: 5.22, | ||
| } | ||
|
|
||
| export const watsonxAiModels = { | ||
PrasangAPrajapati marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| // IBM Granite model | ||
| "ibm/granite-3-3-8b-instruct": { | ||
| ...baseModelInfo, | ||
| description: "", | ||
| }, | ||
PrasangAPrajapati marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } as const satisfies Record<string, ModelInfo> | ||
Uh oh!
There was an error while loading. Please reload this page.