@openclaw/amazon-bedrock-provider 2026.5.31-beta.1 → 2026.5.31-beta.3
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/README.md +11 -0
- package/dist/embedding-provider.js +6 -6
- package/npm-shrinkwrap.json +2 -2
- package/package.json +6 -5
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# OpenClaw Amazon Bedrock Provider
|
|
2
|
+
|
|
3
|
+
Official OpenClaw provider plugin for Amazon Bedrock. It adds Bedrock model discovery, text generation, embeddings, and guardrail-aware provider routing for agents that use AWS-hosted models.
|
|
4
|
+
|
|
5
|
+
Install from OpenClaw:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
openclaw plugin add @openclaw/amazon-bedrock-provider
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Configure AWS credentials and region through your normal OpenClaw credential/profile setup, then select Bedrock models with the `amazon-bedrock/...` provider prefix.
|
|
@@ -245,15 +245,15 @@ async function createBedrockEmbeddingProvider(options) {
|
|
|
245
245
|
const embedCohere = async (texts, inputType, signal) => {
|
|
246
246
|
return parseCohereBatch(family, await invoke(buildCohereBody(family, texts, inputType, client.dimensions), signal)).map((e) => sanitizeAndNormalizeEmbedding(e));
|
|
247
247
|
};
|
|
248
|
-
const embedQuery = async (text,
|
|
248
|
+
const embedQuery = async (text, optionsValue) => {
|
|
249
249
|
if (!text.trim()) return [];
|
|
250
|
-
if (isCohere) return (await embedCohere([text], "search_query",
|
|
251
|
-
return embedSingle(text,
|
|
250
|
+
if (isCohere) return (await embedCohere([text], "search_query", optionsValue?.signal))[0] ?? [];
|
|
251
|
+
return embedSingle(text, optionsValue?.signal);
|
|
252
252
|
};
|
|
253
|
-
const embedBatch = async (texts,
|
|
253
|
+
const embedBatch = async (texts, optionsLocal) => {
|
|
254
254
|
if (texts.length === 0) return [];
|
|
255
|
-
if (isCohere) return embedCohere(texts, "search_document",
|
|
256
|
-
return Promise.all(texts.map((t) => t.trim() ? embedSingle(t,
|
|
255
|
+
if (isCohere) return embedCohere(texts, "search_document", optionsLocal?.signal);
|
|
256
|
+
return Promise.all(texts.map((t) => t.trim() ? embedSingle(t, optionsLocal?.signal) : Promise.resolve([])));
|
|
257
257
|
};
|
|
258
258
|
return {
|
|
259
259
|
provider: {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/amazon-bedrock-provider",
|
|
3
|
-
"version": "2026.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/amazon-bedrock-provider",
|
|
9
|
-
"version": "2026.5.31-beta.
|
|
9
|
+
"version": "2026.5.31-beta.3",
|
|
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.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.3",
|
|
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.5.31-beta.
|
|
28
|
+
"pluginApi": ">=2026.5.31-beta.3"
|
|
29
29
|
},
|
|
30
30
|
"build": {
|
|
31
|
-
"openclawVersion": "2026.5.31-beta.
|
|
31
|
+
"openclawVersion": "2026.5.31-beta.3",
|
|
32
32
|
"bundledDist": false
|
|
33
33
|
},
|
|
34
34
|
"release": {
|
|
@@ -42,10 +42,11 @@
|
|
|
42
42
|
"files": [
|
|
43
43
|
"dist/**",
|
|
44
44
|
"openclaw.plugin.json",
|
|
45
|
-
"npm-shrinkwrap.json"
|
|
45
|
+
"npm-shrinkwrap.json",
|
|
46
|
+
"README.md"
|
|
46
47
|
],
|
|
47
48
|
"peerDependencies": {
|
|
48
|
-
"openclaw": ">=2026.5.31-beta.
|
|
49
|
+
"openclaw": ">=2026.5.31-beta.3"
|
|
49
50
|
},
|
|
50
51
|
"peerDependenciesMeta": {
|
|
51
52
|
"openclaw": {
|