Browse Source

Include inference-profile in Bedrock arnRegex (#2156)

Matt Rubens 11 months ago
parent
commit
fe3e9325a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/api/providers/bedrock.ts

+ 1 - 1
src/api/providers/bedrock.ts

@@ -30,7 +30,7 @@ import { logger } from "../../utils/logging"
 function validateBedrockArn(arn: string, region?: string) {
 	// Validate ARN format
 	const arnRegex =
-		/^arn:aws:bedrock:([^:]+):(\d+):(foundation-model|provisioned-model|default-prompt-router|prompt-router|application-inference-profile)\/(.+)$/
+		/^arn:aws:bedrock:([^:]+):(\d+):(foundation-model|provisioned-model|default-prompt-router|prompt-router|inference-profile|application-inference-profile)\/(.+)$/
 	const match = arn.match(arnRegex)
 
 	if (!match) {