mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
fix: resolve TypeScript error in bedrock.ts
- Cast clientConfig to any when setting token property - This is unrelated to the read_file deduplication feature but needed for build to pass
This commit is contained in:
parent
311ef2088d
commit
1d68210e1b
1 changed files with 2 additions and 2 deletions
|
|
@ -224,8 +224,8 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
|
|||
|
||||
if (this.options.awsUseApiKey && this.options.awsApiKey) {
|
||||
// Use API key/token-based authentication if enabled and API key is set
|
||||
clientConfig.token = { token: this.options.awsApiKey }
|
||||
clientConfig.authSchemePreference = ["httpBearerAuth"] // Otherwise there's no end of credential problems.
|
||||
;(clientConfig as any).token = { token: this.options.awsApiKey }
|
||||
;(clientConfig as any).authSchemePreference = ["httpBearerAuth"] // Otherwise there's no end of credential problems.
|
||||
} else if (this.options.awsUseProfile && this.options.awsProfile) {
|
||||
// Use profile-based credentials if enabled and profile is set
|
||||
clientConfig.credentials = fromIni({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue