mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
Include inference-profile in Bedrock arnRegex (#2156)
This commit is contained in:
parent
a6d6301612
commit
dc16241a57
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue