Fix Bedrock user agent to report full SDK details (#9043)

This commit is contained in:
AJ Juaire 2025-11-05 11:08:58 -08:00 committed by GitHub
parent d4aeca4205
commit c6a02bb8da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 661 additions and 635 deletions

1290
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -219,7 +219,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
this.costModelConfig = this.getModel()
const clientConfig: BedrockRuntimeClientConfig = {
defaultUserAgentProvider: () => Promise.resolve([["RooCode", Package.version]]),
userAgentAppId: `RooCode#${Package.version}`,
region: this.options.awsRegion,
// Add the endpoint configuration when specified and enabled
...(this.options.awsBedrockEndpoint &&

View file

@ -458,8 +458,8 @@
"@anthropic-ai/bedrock-sdk": "^0.10.2",
"@anthropic-ai/sdk": "^0.37.0",
"@anthropic-ai/vertex-sdk": "^0.7.0",
"@aws-sdk/client-bedrock-runtime": "^3.848.0",
"@aws-sdk/credential-providers": "^3.848.0",
"@aws-sdk/client-bedrock-runtime": "^3.922.0",
"@aws-sdk/credential-providers": "^3.922.0",
"@google/genai": "^1.0.0",
"@lmstudio/sdk": "^1.1.1",
"@mistralai/mistralai": "^1.9.18",