Skip to content

Commit fe3e932

Browse files
authored
Include inference-profile in Bedrock arnRegex (#2156)
1 parent 136cf99 commit fe3e932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/bedrock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { logger } from "../../utils/logging"
3030
function validateBedrockArn(arn: string, region?: string) {
3131
// Validate ARN format
3232
const arnRegex =
33-
/^arn:aws:bedrock:([^:]+):(\d+):(foundation-model|provisioned-model|default-prompt-router|prompt-router|application-inference-profile)\/(.+)$/
33+
/^arn:aws:bedrock:([^:]+):(\d+):(foundation-model|provisioned-model|default-prompt-router|prompt-router|inference-profile|application-inference-profile)\/(.+)$/
3434
const match = arn.match(arnRegex)
3535

3636
if (!match) {

0 commit comments

Comments
 (0)