fix(bedrock): add sts userAgentAppId (#7719)
This commit is contained in:
1 parent
09692d7d3a
commit
3eac9b04de
2 files changed
+12
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"claude-dev": patch
|
||||
---
|
||||
|
||||
Add sts client userAgentAppId
|
||||
@@ -104,6 +104,7 @@ interface CachePointContentBlock {
|
||||
|
||||
// Define provider options type based on AWS SDK patterns
|
||||
interface ProviderChainOptions {
|
||||
clientConfig?: { userAgentAppId?: string }
|
||||
ignoreCache?: boolean
|
||||
profile?: string
|
||||
}
|
||||
@@ -211,7 +212,12 @@ export class AwsBedrockHandler implements ApiHandler {
|
||||
sessionToken?: string
|
||||
}> {
|
||||
// Configure provider options
|
||||
const providerOptions: ProviderChainOptions = {}
|
||||
const providerOptions: ProviderChainOptions = {
|
||||
clientConfig: {
|
||||
// set the inner sts client userAgentAppId
|
||||
userAgentAppId: `cline#${ExtensionRegistryInfo.version}`,
|
||||
},
|
||||
}
|
||||
const useProfile =
|
||||
(this.options.awsAuthentication === undefined && this.options.awsUseProfile) ||
|
||||
this.options.awsAuthentication === "profile"
|
||||
|
||||
Reference in new issue
Block a user