Skip to content

Commit 156e5b5

Browse files
committed
Fix AWS token expiry issue when cached token expires and using AWS Profile (#2469)
1 parent e9980bc commit 156e5b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/providers/bedrock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
169169
// Use profile-based credentials if enabled and profile is set
170170
clientConfig.credentials = fromIni({
171171
profile: this.options.awsProfile,
172+
ignoreCache: true,
172173
})
173174
} else if (this.options.awsAccessKey && this.options.awsSecretKey) {
174175
// Use direct credentials if provided

0 commit comments

Comments
 (0)