@@ -295,10 +295,6 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
295295
296296 if ( region === "us." || region === "eu." ) modelName = modelName . slice ( 3 )
297297 this . costModelConfig = this . getModelByName ( modelName )
298- logger . debug ( "Updated modelConfig using invokedModelId from a prompt router response" , {
299- ctx : "bedrock" ,
300- modelConfig : this . costModelConfig ,
301- } )
302298 }
303299
304300 // Handle metadata events for the promptRouter.
@@ -528,21 +524,17 @@ Please check:
528524 modelData . id = this . options . awsCustomArn
529525
530526 if ( modelData ) {
531- logger . debug ( `Matched custom ARN to model: ${ modelName } ` , {
532- ctx : "bedrock" ,
533- modelData,
534- } )
535527 return modelData
536528 }
537529 }
538530
539531 // An ARN was used, but no model info match found, use default values based on common patterns
540- let modelInfo = this . getModelByName ( bedrockDefaultPromptRouterModelId )
532+ let model = this . getModelByName ( bedrockDefaultPromptRouterModelId )
541533
542534 // For custom ARNs, always return the specific values expected by tests
543535 return {
544536 id : this . options . awsCustomArn ,
545- info : modelInfo . info ,
537+ info : model . info ,
546538 }
547539 }
548540
@@ -556,11 +548,6 @@ Please check:
556548
557549 // For tests, allow any model ID (but not custom ARNs, which are handled above)
558550 if ( process . env . NODE_ENV === "test" ) {
559- logger . debug ( "Return defaults 4" , {
560- ctx : "bedrock" ,
561- customArn : this . options . awsCustomArn ,
562- } )
563-
564551 return {
565552 id : this . options . apiModelId ,
566553 info : {
@@ -662,7 +649,6 @@ Please check:
662649 try {
663650 const outputStr = new TextDecoder ( ) . decode ( response . output )
664651 const output = JSON . parse ( outputStr )
665- logger . debug ( "Bedrock response" , { ctx : "bedrock" , output : output } )
666652 if ( output . content ) {
667653 return output . content
668654 }
0 commit comments