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:
hannesrudolph 2025-07-28 12:43:45 -06:00
parent 311ef2088d
commit 1d68210e1b

View file

@ -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({