File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import {
2727import  {  ApiStream  }  from  "../transform/stream" 
2828import  {  BaseProvider  }  from  "./base-provider" 
2929import  {  logger  }  from  "../../utils/logging" 
30+ import  {  Package  }  from  "../../shared/package" 
3031import  {  MultiPointStrategy  }  from  "../transform/cache-strategy/multi-point-strategy" 
3132import  {  ModelInfo  as  CacheModelInfo  }  from  "../transform/cache-strategy/types" 
3233import  {  convertToBedrockConverseMessages  as  sharedConverter  }  from  "../transform/bedrock-converse-format" 
@@ -218,6 +219,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
218219		this . costModelConfig  =  this . getModel ( ) 
219220
220221		const  clientConfig : BedrockRuntimeClientConfig  =  { 
222+ 			defaultUserAgentProvider : ( )  =>  Promise . resolve ( [ [ "RooCode" ,  Package . version ] ] ) , 
221223			region : this . options . awsRegion , 
222224			// Add the endpoint configuration when specified and enabled 
223225			...( this . options . awsBedrockEndpoint  && 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments