We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a43222 commit 6a08916Copy full SHA for 6a08916
src/api/providers/bedrock.ts
@@ -532,7 +532,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
532
* match[4] - The resource ID (e.g., "anthropic.claude-3-sonnet-20240229-v1:0")
533
*/
534
535
- const arnRegex = /^arn:aws:bedrock:([^:]+):([^:]*):(?:([^\/]+)\/([\w\.\-:]+)|([^\/]+))$/
+ const arnRegex = /^arn:aws:(?:bedrock|sagemaker):([^:]+):([^:]*):(?:([^\/]+)\/([\w\.\-:]+)|([^\/]+))$/
536
let match = arn.match(arnRegex)
537
538
if (match && match[1] && match[3] && match[4]) {
0 commit comments