Просмотр исходного кода

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)
vagadiya 8 месяцев назад
Родитель
Сommit
628d232f9f
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/api/providers/bedrock.ts

+ 1 - 0
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
 			// Use profile-based credentials if enabled and profile is set
 			clientConfig.credentials = fromIni({
 			clientConfig.credentials = fromIni({
 				profile: this.options.awsProfile,
 				profile: this.options.awsProfile,
+				ignoreCache: true,
 			})
 			})
 		} else if (this.options.awsAccessKey && this.options.awsSecretKey) {
 		} else if (this.options.awsAccessKey && this.options.awsSecretKey) {
 			// Use direct credentials if provided
 			// Use direct credentials if provided