mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
add ibm-cloud-sdk-core dependency
This commit is contained in:
parent
f1c700b04b
commit
6c269c17b3
3 changed files with 11 additions and 7 deletions
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
|
|
@ -658,6 +658,9 @@ importers:
|
|||
i18next:
|
||||
specifier: ^25.0.0
|
||||
version: 25.2.1(typescript@5.8.3)
|
||||
ibm-cloud-sdk-core:
|
||||
specifier: ^5.4.2
|
||||
version: 5.4.2
|
||||
ignore:
|
||||
specifier: ^7.0.3
|
||||
version: 7.0.4
|
||||
|
|
|
|||
|
|
@ -30,9 +30,13 @@ export async function getWatsonxModels(
|
|||
}
|
||||
|
||||
if (platform === "ibmCloud" || !platform) {
|
||||
options.authenticator = new IamAuthenticator({
|
||||
apikey: apiKey,
|
||||
})
|
||||
if (apiKey) {
|
||||
options.authenticator = new IamAuthenticator({
|
||||
apikey: apiKey,
|
||||
})
|
||||
} else {
|
||||
return {}
|
||||
}
|
||||
} else if (platform === "cloudPak") {
|
||||
if (!baseUrl) {
|
||||
throw new Error("Base URL is required for IBM Cloud Pak for Data")
|
||||
|
|
@ -52,10 +56,6 @@ export async function getWatsonxModels(
|
|||
apikey: apiKey,
|
||||
})
|
||||
}
|
||||
} else {
|
||||
options.authenticator = new IamAuthenticator({
|
||||
apikey: apiKey,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -454,6 +454,7 @@
|
|||
"google-auth-library": "^9.15.1",
|
||||
"gray-matter": "^4.0.3",
|
||||
"i18next": "^25.0.0",
|
||||
"ibm-cloud-sdk-core": "^5.4.2",
|
||||
"ignore": "^7.0.3",
|
||||
"isbinaryfile": "^5.0.2",
|
||||
"lodash.debounce": "^4.0.8",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue