@openclaw/voyage-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/embedding-batch.js
CHANGED
|
@@ -6,7 +6,7 @@ import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtim
|
|
|
6
6
|
const VOYAGE_BATCH_ENDPOINT = EMBEDDING_BATCH_ENDPOINT;
|
|
7
7
|
const VOYAGE_BATCH_COMPLETION_WINDOW = "12h";
|
|
8
8
|
const VOYAGE_BATCH_MAX_REQUESTS = 5e4;
|
|
9
|
-
const VOYAGE_BATCH_RESPONSE_MAX_BYTES =
|
|
9
|
+
const VOYAGE_BATCH_RESPONSE_MAX_BYTES = 16777216;
|
|
10
10
|
function buildVoyageBatchRequest(params) {
|
|
11
11
|
return {
|
|
12
12
|
url: resolveEmbeddingEndpointUrl(params.client.baseUrl, params.path),
|
|
@@ -63,7 +63,8 @@ async function readVoyageBatchError(params) {
|
|
|
63
63
|
const bytes = await readResponseWithLimit(res, VOYAGE_BATCH_RESPONSE_MAX_BYTES, { onOverflow: ({ maxBytes: maxBytesLocal }) => /* @__PURE__ */ new Error(`voyage batch error file content exceeds ${maxBytesLocal} bytes`) });
|
|
64
64
|
const text = new TextDecoder().decode(bytes);
|
|
65
65
|
if (!text.trim()) return;
|
|
66
|
-
|
|
66
|
+
const lines = normalizeStringEntries(text.split("\n")).map((line) => JSON.parse(line));
|
|
67
|
+
return formatBatchErrorDetail(extractBatchErrorMessage(lines));
|
|
67
68
|
}
|
|
68
69
|
}));
|
|
69
70
|
} catch (err) {
|
|
@@ -27,7 +27,7 @@ const voyageMemoryEmbeddingProviderAdapter = {
|
|
|
27
27
|
headers: sanitizeEmbeddingCacheHeaders(client.headers, ["authorization"])
|
|
28
28
|
},
|
|
29
29
|
batchEmbed: async (batch) => {
|
|
30
|
-
|
|
30
|
+
const byCustomId = await runVoyageEmbeddingBatches({
|
|
31
31
|
client,
|
|
32
32
|
agentId: batch.agentId,
|
|
33
33
|
requests: batch.chunks.map((chunk, index) => ({
|
|
@@ -39,7 +39,8 @@ const voyageMemoryEmbeddingProviderAdapter = {
|
|
|
39
39
|
pollIntervalMs: batch.pollIntervalMs,
|
|
40
40
|
timeoutMs: batch.timeoutMs,
|
|
41
41
|
debug: batch.debug
|
|
42
|
-
})
|
|
42
|
+
});
|
|
43
|
+
return mapBatchEmbeddingsByIndex(byCustomId, batch.chunks.length);
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/voyage-provider",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.33",
|
|
4
4
|
"description": "OpenClaw Voyage embedding provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.7.2"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.8.
|
|
21
|
+
"pluginApi": ">=2026.8.33"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.8.
|
|
24
|
+
"openclawVersion": "2026.8.33",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"openclaw": ">=2026.8.
|
|
41
|
+
"openclaw": ">=2026.8.33"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|