@openclaw/parallel-plugin 2026.8.1-beta.2 → 2026.9.1-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.
- package/dist/index.js +1 -1
- package/dist/{parallel-free-web-search-provider-D8jM25mS.js → parallel-free-web-search-provider-CozR2kS8.js} +80 -5
- package/dist/{parallel-free-web-search-provider.runtime-GADQUUdb.js → parallel-free-web-search-provider.runtime-C5mKRTmw.js} +12 -29
- package/dist/{parallel-web-search-provider.runtime-d551Asbw.js → parallel-web-search-provider.runtime-BIJCSTMR.js} +18 -36
- package/dist/web-search-contract-api.js +2 -15
- package/dist/web-search-provider.js +1 -1
- package/package.json +4 -4
- package/dist/parallel-web-search-provider.shared-B8yrY1oc.js +0 -55
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-
|
|
1
|
+
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-CozR2kS8.js";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/parallel/index.ts
|
|
4
4
|
var parallel_default = definePluginEntry({
|
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
import { n as createParallelFreeWebSearchProviderBase, t as createParallelWebSearchProviderBase } from "./parallel-web-search-provider.shared-B8yrY1oc.js";
|
|
2
1
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
2
|
+
import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-contract";
|
|
3
3
|
import { resolveIntegerOption } from "openclaw/plugin-sdk/number-runtime";
|
|
4
|
-
import { DEFAULT_SEARCH_COUNT, buildSearchCacheKey, readPositiveIntegerParam, readStringArrayParam, readStringParam, resolveSiteName, wrapWebContent } from "openclaw/plugin-sdk/provider-web-search";
|
|
4
|
+
import { DEFAULT_SEARCH_COUNT, buildSearchCacheKey, readCachedSearchPayload, readPositiveIntegerParam, readStringArrayParam, readStringParam, resolveSearchCacheTtlMs, resolveSearchTimeoutSeconds, resolveSiteName, wrapWebContent, writeCachedSearchPayload } from "openclaw/plugin-sdk/provider-web-search";
|
|
5
5
|
import { normalizeBoundedOptionalString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
7
|
+
//#region extensions/parallel/src/parallel-free-web-search-provider.shared.ts
|
|
8
|
+
const PARALLEL_FREE_ONBOARDING_SCOPES = ["text-inference"];
|
|
9
|
+
function createParallelFreeWebSearchProviderBase() {
|
|
10
|
+
return {
|
|
11
|
+
id: "parallel-free",
|
|
12
|
+
label: "Parallel Search (Free)",
|
|
13
|
+
hint: "Free web search via Parallel's hosted Search MCP — no API key required",
|
|
14
|
+
onboardingScopes: [...PARALLEL_FREE_ONBOARDING_SCOPES],
|
|
15
|
+
requiresCredential: false,
|
|
16
|
+
envVars: [],
|
|
17
|
+
placeholder: "(no key needed)",
|
|
18
|
+
signupUrl: "https://parallel.ai",
|
|
19
|
+
docsUrl: "https://docs.openclaw.ai/tools/parallel-search",
|
|
20
|
+
credentialPath: "",
|
|
21
|
+
...createWebSearchProviderContractFields({
|
|
22
|
+
credentialPath: "",
|
|
23
|
+
searchCredential: {
|
|
24
|
+
type: "scoped",
|
|
25
|
+
scopeId: "parallel-free"
|
|
26
|
+
},
|
|
27
|
+
selectionPluginId: "parallel"
|
|
28
|
+
})
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
7
32
|
//#region extensions/parallel/src/parallel-search-normalize.ts
|
|
8
33
|
const PARALLEL_MAX_SEARCH_COUNT$1 = 40;
|
|
9
34
|
const PARALLEL_MAX_SEARCH_QUERY_CHARS$1 = 200;
|
|
@@ -26,6 +51,28 @@ function normalizeParallelSearchRequest(args, configuredCount, sessionIdMaxLengt
|
|
|
26
51
|
clientModel: normalizeParallelClientModel(readStringParam(args, "client_model"))
|
|
27
52
|
};
|
|
28
53
|
}
|
|
54
|
+
async function executeParallelSearchRequest(params) {
|
|
55
|
+
const request = normalizeParallelSearchRequest(params.args, params.searchConfig?.maxResults, params.provider === "parallel" ? PARALLEL_SESSION_ID_MAX_LENGTH : 100);
|
|
56
|
+
if ("error" in request) return request.error;
|
|
57
|
+
const cacheKey = buildParallelCacheKey({
|
|
58
|
+
endpoint: params.endpoint,
|
|
59
|
+
...request
|
|
60
|
+
});
|
|
61
|
+
const cached = readCachedSearchPayload(cacheKey);
|
|
62
|
+
if (cached) return cached;
|
|
63
|
+
const start = Date.now();
|
|
64
|
+
const response = await params.search(request, resolveSearchTimeoutSeconds(params.searchConfig));
|
|
65
|
+
params.signal?.throwIfAborted();
|
|
66
|
+
const payload = buildParallelSearchPayload({
|
|
67
|
+
provider: params.provider,
|
|
68
|
+
objective: request.objective,
|
|
69
|
+
searchQueries: request.searchQueries,
|
|
70
|
+
response,
|
|
71
|
+
start
|
|
72
|
+
});
|
|
73
|
+
writeCachedSearchPayload(cacheKey, request.sessionId ? payload : stripParallelGeneratedSessionId(payload), resolveSearchCacheTtlMs(params.searchConfig));
|
|
74
|
+
return payload;
|
|
75
|
+
}
|
|
29
76
|
function resolveParallelSearchCount(args, configuredCount) {
|
|
30
77
|
return resolveIntegerOption(readPositiveIntegerParam(args, "count", {
|
|
31
78
|
max: PARALLEL_MAX_SEARCH_COUNT$1,
|
|
@@ -134,6 +181,34 @@ function buildParallelCacheKey(params) {
|
|
|
134
181
|
]);
|
|
135
182
|
}
|
|
136
183
|
//#endregion
|
|
184
|
+
//#region extensions/parallel/src/parallel-web-search-provider.shared.ts
|
|
185
|
+
const PARALLEL_CREDENTIAL_PATH = "plugins.entries.parallel.config.webSearch.apiKey";
|
|
186
|
+
const PARALLEL_ONBOARDING_SCOPES = ["text-inference"];
|
|
187
|
+
function createParallelWebSearchProviderBase() {
|
|
188
|
+
return {
|
|
189
|
+
id: "parallel",
|
|
190
|
+
label: "Parallel Search",
|
|
191
|
+
hint: "LLM-optimized dense excerpts from web sources",
|
|
192
|
+
onboardingScopes: [...PARALLEL_ONBOARDING_SCOPES],
|
|
193
|
+
credentialLabel: "Parallel API key",
|
|
194
|
+
envVars: ["PARALLEL_API_KEY"],
|
|
195
|
+
placeholder: "par-...",
|
|
196
|
+
signupUrl: "https://platform.parallel.ai",
|
|
197
|
+
docsUrl: "https://docs.openclaw.ai/tools/parallel-search",
|
|
198
|
+
autoDetectOrder: 75,
|
|
199
|
+
credentialPath: PARALLEL_CREDENTIAL_PATH,
|
|
200
|
+
...createWebSearchProviderContractFields({
|
|
201
|
+
credentialPath: PARALLEL_CREDENTIAL_PATH,
|
|
202
|
+
searchCredential: {
|
|
203
|
+
type: "scoped",
|
|
204
|
+
scopeId: "parallel"
|
|
205
|
+
},
|
|
206
|
+
configuredCredential: { pluginId: "parallel" },
|
|
207
|
+
selectionPluginId: "parallel"
|
|
208
|
+
})
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
137
212
|
//#region extensions/parallel/src/parallel-web-search-provider.ts
|
|
138
213
|
const PARALLEL_MAX_SEARCH_COUNT = 40;
|
|
139
214
|
const PARALLEL_MAX_SEARCH_QUERIES = 5;
|
|
@@ -141,7 +216,7 @@ const PARALLEL_MAX_SEARCH_QUERY_CHARS = 200;
|
|
|
141
216
|
const PARALLEL_MAX_OBJECTIVE_CHARS = 5e3;
|
|
142
217
|
const PARALLEL_MAX_SESSION_ID_CHARS = 1e3;
|
|
143
218
|
const PARALLEL_MAX_CLIENT_MODEL_CHARS = 100;
|
|
144
|
-
const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-
|
|
219
|
+
const loadParallelWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-web-search-provider.runtime-BIJCSTMR.js"));
|
|
145
220
|
const ParallelSearchSchema = {
|
|
146
221
|
type: "object",
|
|
147
222
|
properties: {
|
|
@@ -206,7 +281,7 @@ const ParallelFreeSearchSchema = {
|
|
|
206
281
|
}
|
|
207
282
|
}
|
|
208
283
|
};
|
|
209
|
-
const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-
|
|
284
|
+
const loadParallelFreeWebSearchRuntime = createLazyRuntimeModule(() => import("./parallel-free-web-search-provider.runtime-C5mKRTmw.js"));
|
|
210
285
|
function createParallelFreeWebSearchProvider() {
|
|
211
286
|
return {
|
|
212
287
|
...createParallelFreeWebSearchProviderBase(),
|
|
@@ -221,4 +296,4 @@ function createParallelFreeWebSearchProvider() {
|
|
|
221
296
|
};
|
|
222
297
|
}
|
|
223
298
|
//#endregion
|
|
224
|
-
export {
|
|
299
|
+
export { normalizeParallelClientModel as a, normalizeParallelSearchQueries as c, executeParallelSearchRequest as i, normalizeParallelSessionId as l, createParallelWebSearchProvider as n, normalizeParallelObjective as o, buildParallelCacheKey as r, normalizeParallelResults as s, createParallelFreeWebSearchProvider as t, resolveParallelSearchCount as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as executeParallelSearchRequest } from "./parallel-free-web-search-provider-CozR2kS8.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import { mergeScopedSearchConfig,
|
|
3
|
+
import { mergeScopedSearchConfig, resolveProviderWebSearchPluginConfig, withTrustedWebSearchEndpoint } from "openclaw/plugin-sdk/provider-web-search";
|
|
4
4
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
@@ -208,38 +208,21 @@ async function runParallelMcpSearch(params) {
|
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region extensions/parallel/src/parallel-free-web-search-provider.runtime.ts
|
|
210
210
|
async function executeParallelFreeWebSearchProviderTool(ctx, args, signal) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
if ("error" in request) return request.error;
|
|
214
|
-
const { objective, searchQueries, count, sessionId, clientModel } = request;
|
|
215
|
-
const cacheKey = buildParallelCacheKey({
|
|
216
|
-
endpoint: PARALLEL_MCP_SEARCH_URL,
|
|
217
|
-
objective,
|
|
218
|
-
searchQueries,
|
|
219
|
-
count,
|
|
220
|
-
sessionId,
|
|
221
|
-
clientModel
|
|
222
|
-
});
|
|
223
|
-
const cached = readCachedSearchPayload(cacheKey);
|
|
224
|
-
if (cached) return cached;
|
|
225
|
-
const start = Date.now();
|
|
226
|
-
const payload = buildParallelSearchPayload({
|
|
211
|
+
signal?.throwIfAborted();
|
|
212
|
+
return executeParallelSearchRequest({
|
|
227
213
|
provider: "parallel-free",
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
214
|
+
endpoint: PARALLEL_MCP_SEARCH_URL,
|
|
215
|
+
args,
|
|
216
|
+
searchConfig: mergeScopedSearchConfig(ctx.searchConfig, "parallel-free", resolveProviderWebSearchPluginConfig(ctx.config, "parallel-free")),
|
|
217
|
+
signal,
|
|
218
|
+
search: ({ count, clientModel, ...request }, timeoutSeconds) => runParallelMcpSearch({
|
|
219
|
+
...request,
|
|
233
220
|
maxResults: count,
|
|
234
|
-
sessionId,
|
|
235
221
|
modelName: clientModel,
|
|
236
|
-
timeoutSeconds
|
|
222
|
+
timeoutSeconds,
|
|
237
223
|
signal
|
|
238
|
-
})
|
|
239
|
-
start
|
|
224
|
+
})
|
|
240
225
|
});
|
|
241
|
-
writeCachedSearchPayload(cacheKey, sessionId ? payload : stripParallelGeneratedSessionId(payload), resolveSearchCacheTtlMs(searchConfig));
|
|
242
|
-
return payload;
|
|
243
226
|
}
|
|
244
227
|
//#endregion
|
|
245
228
|
export { executeParallelFreeWebSearchProviderTool };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as normalizeParallelClientModel, c as normalizeParallelSearchQueries, i as executeParallelSearchRequest, l as normalizeParallelSessionId, o as normalizeParallelObjective, r as buildParallelCacheKey, s as normalizeParallelResults, u as resolveParallelSearchCount } from "./parallel-free-web-search-provider-CozR2kS8.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import { mergeScopedSearchConfig,
|
|
3
|
+
import { mergeScopedSearchConfig, readConfiguredSecretString, readProviderEnvValue, resolveProviderWebSearchPluginConfig, withTrustedWebSearchEndpoint } from "openclaw/plugin-sdk/provider-web-search";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { readPluginPackageVersion } from "openclaw/plugin-sdk/extension-shared";
|
|
6
6
|
import { readProviderJsonResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
|
|
7
|
+
import { redactToolPayloadText } from "openclaw/plugin-sdk/logging-core";
|
|
8
|
+
import { redactSensitiveText } from "openclaw/plugin-sdk/security-runtime";
|
|
7
9
|
//#region extensions/parallel/src/parallel-web-search-provider.runtime.ts
|
|
8
10
|
const PARALLEL_BASE_URL = "https://api.parallel.ai";
|
|
9
11
|
const PARALLEL_SEARCH_PATHNAME = "/v1/search";
|
|
@@ -73,7 +75,7 @@ async function runParallelSearch(params) {
|
|
|
73
75
|
}, async (res) => {
|
|
74
76
|
if (!res.ok) {
|
|
75
77
|
const detail = await readResponseTextLimited(res, PARALLEL_ERROR_BODY_LIMIT_BYTES).catch(() => "");
|
|
76
|
-
throw new Error(`Parallel API error (${res.status}): ${detail || res.statusText}`);
|
|
78
|
+
throw new Error(`Parallel API error (${res.status}): ${redactToolPayloadText(redactSensitiveText(detail || res.statusText, { mode: "tools" }))}`);
|
|
77
79
|
}
|
|
78
80
|
return await readProviderJsonResponse(res, "Parallel API", { maxBytes: PARALLEL_SEARCH_RESPONSE_LIMIT_BYTES });
|
|
79
81
|
});
|
|
@@ -86,41 +88,21 @@ async function executeParallelWebSearchProviderTool(ctx, args, signal) {
|
|
|
86
88
|
const endpointResult = resolveParallelSearchEndpoint(parallelConfig);
|
|
87
89
|
if ("error" in endpointResult) return endpointResult;
|
|
88
90
|
const endpoint = endpointResult.endpoint;
|
|
89
|
-
|
|
90
|
-
if ("error" in request) return request.error;
|
|
91
|
-
const { objective, searchQueries, count, sessionId, clientModel } = request;
|
|
92
|
-
const cacheKey = buildParallelCacheKey({
|
|
93
|
-
endpoint,
|
|
94
|
-
objective,
|
|
95
|
-
searchQueries,
|
|
96
|
-
count,
|
|
97
|
-
sessionId,
|
|
98
|
-
clientModel
|
|
99
|
-
});
|
|
100
|
-
const cached = readCachedSearchPayload(cacheKey);
|
|
101
|
-
if (cached) return cached;
|
|
102
|
-
const start = Date.now();
|
|
103
|
-
const response = await runParallelSearch({
|
|
104
|
-
apiKey,
|
|
105
|
-
endpoint,
|
|
106
|
-
objective,
|
|
107
|
-
searchQueries,
|
|
108
|
-
maxResults: count,
|
|
109
|
-
sessionId,
|
|
110
|
-
clientModel,
|
|
111
|
-
timeoutSeconds: resolveSearchTimeoutSeconds(searchConfig),
|
|
112
|
-
signal
|
|
113
|
-
});
|
|
114
|
-
signal?.throwIfAborted();
|
|
115
|
-
const payload = buildParallelSearchPayload({
|
|
91
|
+
return executeParallelSearchRequest({
|
|
116
92
|
provider: "parallel",
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
93
|
+
endpoint,
|
|
94
|
+
args,
|
|
95
|
+
searchConfig,
|
|
96
|
+
signal,
|
|
97
|
+
search: ({ count, ...request }, timeoutSeconds) => runParallelSearch({
|
|
98
|
+
...request,
|
|
99
|
+
apiKey,
|
|
100
|
+
endpoint,
|
|
101
|
+
maxResults: count,
|
|
102
|
+
timeoutSeconds,
|
|
103
|
+
signal
|
|
104
|
+
})
|
|
121
105
|
});
|
|
122
|
-
writeCachedSearchPayload(cacheKey, sessionId ? payload : stripParallelGeneratedSessionId(payload), resolveSearchCacheTtlMs(searchConfig));
|
|
123
|
-
return payload;
|
|
124
106
|
}
|
|
125
107
|
const testing = {
|
|
126
108
|
buildParallelCacheKey,
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
|
|
3
|
-
function createParallelWebSearchProvider() {
|
|
4
|
-
return {
|
|
5
|
-
...createParallelWebSearchProviderBase(),
|
|
6
|
-
createTool: () => null
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
function createParallelFreeWebSearchProvider() {
|
|
10
|
-
return {
|
|
11
|
-
...createParallelFreeWebSearchProviderBase(),
|
|
12
|
-
createTool: () => null
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
1
|
+
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-CozR2kS8.js";
|
|
2
|
+
import "./web-search-provider.js";
|
|
16
3
|
export { createParallelFreeWebSearchProvider, createParallelWebSearchProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-
|
|
1
|
+
import { n as createParallelWebSearchProvider, t as createParallelFreeWebSearchProvider } from "./parallel-free-web-search-provider-CozR2kS8.js";
|
|
2
2
|
export { createParallelFreeWebSearchProvider, createParallelWebSearchProvider };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/parallel-plugin",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.9.1-beta.1",
|
|
4
4
|
"description": "OpenClaw Parallel web search plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.6.8"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.
|
|
21
|
+
"pluginApi": ">=2026.9.1-beta.1"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.
|
|
24
|
+
"openclawVersion": "2026.9.1-beta.1",
|
|
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.
|
|
41
|
+
"openclaw": ">=2026.9.1-beta.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { createWebSearchProviderContractFields } from "openclaw/plugin-sdk/provider-web-search-contract";
|
|
2
|
-
//#region extensions/parallel/src/parallel-free-web-search-provider.shared.ts
|
|
3
|
-
const PARALLEL_FREE_ONBOARDING_SCOPES = ["text-inference"];
|
|
4
|
-
function createParallelFreeWebSearchProviderBase() {
|
|
5
|
-
return {
|
|
6
|
-
id: "parallel-free",
|
|
7
|
-
label: "Parallel Search (Free)",
|
|
8
|
-
hint: "Free web search via Parallel's hosted Search MCP — no API key required",
|
|
9
|
-
onboardingScopes: [...PARALLEL_FREE_ONBOARDING_SCOPES],
|
|
10
|
-
requiresCredential: false,
|
|
11
|
-
envVars: [],
|
|
12
|
-
placeholder: "(no key needed)",
|
|
13
|
-
signupUrl: "https://parallel.ai",
|
|
14
|
-
docsUrl: "https://docs.openclaw.ai/tools/parallel-search",
|
|
15
|
-
credentialPath: "",
|
|
16
|
-
...createWebSearchProviderContractFields({
|
|
17
|
-
credentialPath: "",
|
|
18
|
-
searchCredential: {
|
|
19
|
-
type: "scoped",
|
|
20
|
-
scopeId: "parallel-free"
|
|
21
|
-
},
|
|
22
|
-
selectionPluginId: "parallel"
|
|
23
|
-
})
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region extensions/parallel/src/parallel-web-search-provider.shared.ts
|
|
28
|
-
const PARALLEL_CREDENTIAL_PATH = "plugins.entries.parallel.config.webSearch.apiKey";
|
|
29
|
-
const PARALLEL_ONBOARDING_SCOPES = ["text-inference"];
|
|
30
|
-
function createParallelWebSearchProviderBase() {
|
|
31
|
-
return {
|
|
32
|
-
id: "parallel",
|
|
33
|
-
label: "Parallel Search",
|
|
34
|
-
hint: "LLM-optimized dense excerpts from web sources",
|
|
35
|
-
onboardingScopes: [...PARALLEL_ONBOARDING_SCOPES],
|
|
36
|
-
credentialLabel: "Parallel API key",
|
|
37
|
-
envVars: ["PARALLEL_API_KEY"],
|
|
38
|
-
placeholder: "par-...",
|
|
39
|
-
signupUrl: "https://platform.parallel.ai",
|
|
40
|
-
docsUrl: "https://docs.openclaw.ai/tools/parallel-search",
|
|
41
|
-
autoDetectOrder: 75,
|
|
42
|
-
credentialPath: PARALLEL_CREDENTIAL_PATH,
|
|
43
|
-
...createWebSearchProviderContractFields({
|
|
44
|
-
credentialPath: PARALLEL_CREDENTIAL_PATH,
|
|
45
|
-
searchCredential: {
|
|
46
|
-
type: "scoped",
|
|
47
|
-
scopeId: "parallel"
|
|
48
|
-
},
|
|
49
|
-
configuredCredential: { pluginId: "parallel" },
|
|
50
|
-
selectionPluginId: "parallel"
|
|
51
|
-
})
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
export { createParallelFreeWebSearchProviderBase as n, createParallelWebSearchProviderBase as t };
|