From 1d68210e1bcc60a8607062bbf7f7ee172f6a4edf Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Mon, 28 Jul 2025 12:43:45 -0600 Subject: [PATCH] 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 --- src/api/providers/bedrock.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/providers/bedrock.ts b/src/api/providers/bedrock.ts index 76e502e6c7..ee27367e19 100644 --- a/src/api/providers/bedrock.ts +++ b/src/api/providers/bedrock.ts @@ -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({