@openclaw/amazon-bedrock-provider 2026.10.1-beta.2 → 2026.10.2
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.
- package/dist/register.sync.runtime.js +12 -15
- package/openclaw.plugin.json +3 -0
- package/package.json +4 -4
|
@@ -211,23 +211,20 @@ function registerAmazonBedrockPlugin(api) {
|
|
|
211
211
|
return bedrockRegionRe.exec(baseUrl)?.[1];
|
|
212
212
|
}
|
|
213
213
|
/** Resolve the AWS region for Bedrock API calls from provider-specific baseUrl. */
|
|
214
|
-
function resolveBedrockRegion(config) {
|
|
215
|
-
const providers = config?.models?.providers;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
if (key === providerId || normalizeProviderId(key) !== providerId) continue;
|
|
224
|
-
const region = extractRegionFromBaseUrl(value.baseUrl);
|
|
225
|
-
if (region) return region;
|
|
226
|
-
}
|
|
214
|
+
function resolveBedrockRegion(config, selectedProvider) {
|
|
215
|
+
const providers = config?.models?.providers ?? {};
|
|
216
|
+
const exact = providers[selectedProvider]?.baseUrl;
|
|
217
|
+
const exactRegion = extractRegionFromBaseUrl(exact);
|
|
218
|
+
if (exactRegion) return exactRegion;
|
|
219
|
+
for (const [key, value] of Object.entries(providers)) {
|
|
220
|
+
if (key === selectedProvider || normalizeProviderId(key) !== normalizeProviderId(selectedProvider)) continue;
|
|
221
|
+
const region = extractRegionFromBaseUrl(value.baseUrl);
|
|
222
|
+
if (region) return region;
|
|
227
223
|
}
|
|
228
224
|
}
|
|
229
225
|
api.registerProvider({
|
|
230
226
|
id: providerId,
|
|
227
|
+
hookAliases: ["bedrock-converse-stream"],
|
|
231
228
|
label: "Amazon Bedrock",
|
|
232
229
|
docsPath: "/providers/models",
|
|
233
230
|
auth: [],
|
|
@@ -251,7 +248,7 @@ function registerAmazonBedrockPlugin(api) {
|
|
|
251
248
|
supportsSystemPromptCacheBoundary: true,
|
|
252
249
|
createStreamFn: ({ model }) => model.api === "bedrock-converse-stream" ? bedrockStreamFn : void 0,
|
|
253
250
|
...anthropicByModelReplayHooks,
|
|
254
|
-
wrapStreamFn: ({ modelId, config, model, streamFn, thinkingLevel, extraParams }) => {
|
|
251
|
+
wrapStreamFn: ({ provider, modelId, config, model, streamFn, thinkingLevel, extraParams }) => {
|
|
255
252
|
const currentPluginConfig = resolveCurrentPluginConfig(config);
|
|
256
253
|
const currentGuardrail = currentPluginConfig?.guardrail;
|
|
257
254
|
const modelRef = {
|
|
@@ -277,7 +274,7 @@ function registerAmazonBedrockPlugin(api) {
|
|
|
277
274
|
api.logger.warn(`ignoring unsupported ${modelLabel} Bedrock service tier: ${serviceTier}`);
|
|
278
275
|
} else wrapped = createBedrockServiceTierWrapper(wrapped, serviceTier);
|
|
279
276
|
}
|
|
280
|
-
const region = resolveBedrockRegion(config) ?? extractRegionFromBaseUrl(model?.baseUrl) ?? currentPluginConfig?.discovery?.region;
|
|
277
|
+
const region = resolveBedrockRegion(config, provider) ?? extractRegionFromBaseUrl(model?.baseUrl) ?? currentPluginConfig?.discovery?.region;
|
|
281
278
|
const mayNeedCacheInjection = isBedrockAppInferenceProfile(modelId) && !supportsBedrockClaudePromptCaching(modelId);
|
|
282
279
|
const shouldOmitTemperature = opus47OrNewer || fable5 || isLatestAdaptiveBedrockModelRef(modelId, model?.params);
|
|
283
280
|
const shouldPatchMaxThinking = supportsNativeMax && thinkingLevel === "max";
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/amazon-bedrock-provider",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.2",
|
|
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.10.
|
|
28
|
+
"pluginApi": ">=2026.10.2"
|
|
29
29
|
},
|
|
30
30
|
"build": {
|
|
31
|
-
"openclawVersion": "2026.10.
|
|
31
|
+
"openclawVersion": "2026.10.2",
|
|
32
32
|
"bundledDist": false
|
|
33
33
|
},
|
|
34
34
|
"release": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"assets/activity.svg"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"openclaw": ">=2026.10.
|
|
50
|
+
"openclaw": ">=2026.10.2"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"openclaw": {
|