File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -160,16 +160,6 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
160160 this . options . modelTemperature ?? BEDROCK_DEFAULT_TEMPERATURE
161161 this . costModelConfig = this . getModel ( )
162162
163- if ( this . options . awsUseCrossRegionInference ) {
164- // Get the current region
165- const region = this . options . awsRegion || ""
166- // Use the helper method to get the appropriate prefix for this region
167- const prefix = AwsBedrockHandler . getPrefixForRegion ( region )
168-
169- // Apply the prefix if one was found, otherwise use the model ID as is
170- this . costModelConfig . id = prefix ? `${ prefix } ${ this . costModelConfig . id } ` : this . costModelConfig . id
171- }
172-
173163 const clientConfig : BedrockRuntimeClientConfig = {
174164 region : this . options . awsRegion ,
175165 }
@@ -307,7 +297,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
307297 if ( streamEvent ?. trace ?. promptRouter ?. invokedModelId ) {
308298 try {
309299 let invokedModelArn = this . parseArn ( streamEvent . trace . promptRouter . invokedModelId )
310- if ( invokedModelArn . modelId ) {
300+ if ( invokedModelArn ? .modelId ) {
311301 //update the in-use model info to be based on the invoked Model Id for the router
312302 //so that pricing, context window, caching etc have values that can be used
313303 //However, we want to keep the id of the model to be the ID for the router for
You can’t perform that action at this time.
0 commit comments