@openclaw/amazon-bedrock-provider 2026.6.8-beta.2 → 2026.6.9-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,10 +79,15 @@ const MODELS = {
79
79
  family: "twelvelabs"
80
80
  }
81
81
  };
82
+ /** Strip AWS inference profile prefix (us., eu., ap., apac., au., jp., global.) from model ID. */
83
+ function stripInferenceProfilePrefix(modelId) {
84
+ return modelId.replace(/^(?:us|eu|ap|apac|au|jp|global)\./, "");
85
+ }
82
86
  /** Resolve spec, stripping throughput suffixes like `:2:8k` or `:0:512`. */
83
87
  function resolveSpec(modelId) {
84
- if (MODELS[modelId]) return MODELS[modelId];
85
- const parts = modelId.split(":");
88
+ const bare = stripInferenceProfilePrefix(modelId);
89
+ if (MODELS[bare]) return MODELS[bare];
90
+ const parts = bare.split(":");
86
91
  for (let i = parts.length - 1; i >= 1; i--) {
87
92
  const spec = MODELS[parts.slice(0, i).join(":")];
88
93
  if (spec) return spec;
@@ -90,7 +95,7 @@ function resolveSpec(modelId) {
90
95
  }
91
96
  /** Infer family from model ID prefix when not in catalog. */
92
97
  function inferFamily(modelId) {
93
- const id = normalizeLowercaseStringOrEmpty(modelId);
98
+ const id = normalizeLowercaseStringOrEmpty(stripInferenceProfilePrefix(modelId));
94
99
  if (id.startsWith("amazon.titan-embed-text-v2")) return "titan-v2";
95
100
  if (id.startsWith("amazon.titan-embed")) return "titan-v1";
96
101
  if (id.startsWith("amazon.nova")) return "nova";
@@ -215,7 +220,8 @@ function parseCohereBatch(family, raw) {
215
220
  }
216
221
  const testing = {
217
222
  parseCohereBatch,
218
- parseSingle
223
+ parseSingle,
224
+ stripInferenceProfilePrefix
219
225
  };
220
226
  async function createBedrockEmbeddingProvider(options) {
221
227
  const client = resolveBedrockEmbeddingClient(options);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/amazon-bedrock-provider",
3
- "version": "2026.6.8-beta.2",
3
+ "version": "2026.6.9-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/amazon-bedrock-provider",
9
- "version": "2026.6.8-beta.2",
9
+ "version": "2026.6.9-beta.1",
10
10
  "dependencies": {
11
11
  "@aws-sdk/client-bedrock": "3.1056.0",
12
12
  "@aws-sdk/client-bedrock-runtime": "3.1056.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/amazon-bedrock-provider",
3
- "version": "2026.6.8-beta.2",
3
+ "version": "2026.6.9-beta.1",
4
4
  "description": "OpenClaw Amazon Bedrock provider plugin with model discovery, embeddings, and guardrail support.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,10 +25,10 @@
25
25
  "minHostVersion": ">=2026.5.12-beta.1"
26
26
  },
27
27
  "compat": {
28
- "pluginApi": ">=2026.6.8-beta.2"
28
+ "pluginApi": ">=2026.6.9-beta.1"
29
29
  },
30
30
  "build": {
31
- "openclawVersion": "2026.6.8-beta.2",
31
+ "openclawVersion": "2026.6.9-beta.1",
32
32
  "bundledDist": false
33
33
  },
34
34
  "release": {
@@ -46,7 +46,7 @@
46
46
  "README.md"
47
47
  ],
48
48
  "peerDependencies": {
49
- "openclaw": ">=2026.6.8-beta.2"
49
+ "openclaw": ">=2026.6.9-beta.1"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "openclaw": {