From 628d232f9fc6972c81cee05a2115fc79527c8ca4 Mon Sep 17 00:00:00 2001 From: vagadiya <32499123+vagadiya@users.noreply.github.com> Date: Sun, 13 Apr 2025 03:23:48 +0100 Subject: [PATCH] Fix AWS token expiry issue when cached token expires when using AWS Profile for Bedrock (#2469) (#2530) Fix AWS token expiry issue when cached token expires and using AWS Profile (#2469) --- src/api/providers/bedrock.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/providers/bedrock.ts b/src/api/providers/bedrock.ts index 553ef37442..d513219899 100644 --- a/src/api/providers/bedrock.ts +++ b/src/api/providers/bedrock.ts @@ -169,6 +169,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH // Use profile-based credentials if enabled and profile is set clientConfig.credentials = fromIni({ profile: this.options.awsProfile, + ignoreCache: true, }) } else if (this.options.awsAccessKey && this.options.awsSecretKey) { // Use direct credentials if provided