@openclaw/amazon-bedrock-provider 2026.8.1 → 2026.8.33
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/discovery.js +2 -1
- package/dist/register.sync.runtime.js +6 -4
- package/dist/stream.runtime.js +20 -2
- package/package.json +4 -4
package/dist/discovery.js
CHANGED
|
@@ -162,7 +162,8 @@ function resolveDefaultMaxTokens(config) {
|
|
|
162
162
|
}
|
|
163
163
|
function matchesProviderFilter(summary, filter) {
|
|
164
164
|
if (filter.length === 0) return true;
|
|
165
|
-
const
|
|
165
|
+
const providerName = summary.providerName ?? (typeof summary.modelId === "string" ? summary.modelId.split(".")[0] : void 0);
|
|
166
|
+
const normalized = normalizeOptionalLowercaseString(providerName);
|
|
166
167
|
if (!normalized) return false;
|
|
167
168
|
return filter.includes(normalized);
|
|
168
169
|
}
|
|
@@ -319,10 +319,12 @@ function registerAmazonBedrockPlugin(api) {
|
|
|
319
319
|
streamFn
|
|
320
320
|
})) ?? void 0;
|
|
321
321
|
const serviceTier = resolveBedrockServiceTier(extraParams, (message) => api.logger.warn(message));
|
|
322
|
-
if (serviceTier && wrapped)
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
322
|
+
if (serviceTier && wrapped) {
|
|
323
|
+
if ((fable5 || opus5 || sonnet5) && serviceTier !== "default") {
|
|
324
|
+
const modelLabel = fable5 ? "Fable 5" : opus5 ? "Opus 5" : "Sonnet 5";
|
|
325
|
+
api.logger.warn(`ignoring unsupported ${modelLabel} Bedrock service tier: ${serviceTier}`);
|
|
326
|
+
} else wrapped = createBedrockServiceTierWrapper(wrapped, serviceTier);
|
|
327
|
+
}
|
|
326
328
|
const region = resolveBedrockRegion(config) ?? extractRegionFromBaseUrl(model?.baseUrl) ?? currentPluginConfig?.discovery?.region;
|
|
327
329
|
const mayNeedCacheInjection = isBedrockAppInferenceProfile(modelId) && !sharedRuntimeWouldInjectCachePoints(modelId);
|
|
328
330
|
const shouldOmitTemperature = opus47OrNewer || fable5 || isLatestAdaptiveBedrockModelRef(modelId, model?.params);
|
package/dist/stream.runtime.js
CHANGED
|
@@ -438,7 +438,6 @@ function handleContentBlockStop(event, blocks, output, stream, redactedReasoning
|
|
|
438
438
|
block,
|
|
439
439
|
contentIndex: index
|
|
440
440
|
});
|
|
441
|
-
break;
|
|
442
441
|
}
|
|
443
442
|
}
|
|
444
443
|
function flushPendingBedrockToolCalls(pending, blocks, output, stream) {
|
|
@@ -641,9 +640,28 @@ function convertMessages(context, model, cacheRetention) {
|
|
|
641
640
|
j++;
|
|
642
641
|
}
|
|
643
642
|
i = j - 1;
|
|
643
|
+
const attachedImages = [];
|
|
644
|
+
const userContent = model.id.includes("openai.gpt-5.6-sol") ? toolResults.map((block) => {
|
|
645
|
+
const images = [];
|
|
646
|
+
const content = (block.toolResult.content ?? []).filter((part) => {
|
|
647
|
+
if (part.image) {
|
|
648
|
+
images.push({ image: part.image });
|
|
649
|
+
return false;
|
|
650
|
+
}
|
|
651
|
+
return true;
|
|
652
|
+
});
|
|
653
|
+
if (images.length === 0) return block;
|
|
654
|
+
const label = `Images from tool result ${block.toolResult.toolUseId}`;
|
|
655
|
+
attachedImages.push({ text: `${label}:` }, ...images);
|
|
656
|
+
return { toolResult: {
|
|
657
|
+
...block.toolResult,
|
|
658
|
+
content: [...content, { text: `(see attached images labeled "${label}")` }]
|
|
659
|
+
} };
|
|
660
|
+
}) : toolResults;
|
|
661
|
+
userContent.push(...attachedImages);
|
|
644
662
|
result.push({
|
|
645
663
|
role: ConversationRole.USER,
|
|
646
|
-
content:
|
|
664
|
+
content: userContent
|
|
647
665
|
});
|
|
648
666
|
break;
|
|
649
667
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/amazon-bedrock-provider",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.33",
|
|
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.8.
|
|
28
|
+
"pluginApi": ">=2026.8.33"
|
|
29
29
|
},
|
|
30
30
|
"build": {
|
|
31
|
-
"openclawVersion": "2026.8.
|
|
31
|
+
"openclawVersion": "2026.8.33",
|
|
32
32
|
"bundledDist": false
|
|
33
33
|
},
|
|
34
34
|
"release": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"README.md"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"openclaw": ">=2026.8.
|
|
48
|
+
"openclaw": ">=2026.8.33"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"openclaw": {
|