@openclaw/cerebras-provider 2026.11.3 → 2026.11.5-beta.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/.setup/{provider-catalog-BiNR-qKR.mjs → provider-catalog-ZqtKEfty.mjs} +34 -35
- package/dist/.source-module-urls/72c0977dc66dfbb7e315d8c92fe1f14682dd2e347a1903a3e071adda8e55e53d.json +1 -0
- package/dist/api.js +1 -1
- package/dist/index.js +1 -1
- package/dist/onboard.js +1 -1
- package/dist/provider-catalog.js +1 -2
- package/package.json +4 -4
|
@@ -68,47 +68,46 @@ const CEREBRAS_MODEL_CATALOG = openclaw_plugin_default.modelCatalog.providers.ce
|
|
|
68
68
|
function buildCerebrasCatalogModels() {
|
|
69
69
|
return buildCerebrasProvider().models;
|
|
70
70
|
}
|
|
71
|
-
function projectCerebrasModels(rows, fallback) {
|
|
72
|
-
const seeds = new Map(fallback.models.map((model) => [model.id, model]));
|
|
73
|
-
const models = /* @__PURE__ */ new Map();
|
|
74
|
-
for (const row of rows) {
|
|
75
|
-
const record = asOptionalRecord(row);
|
|
76
|
-
const id = normalizeOptionalString(record?.id);
|
|
77
|
-
const limits = asOptionalRecord(record?.limits);
|
|
78
|
-
const contextWindow = asPositiveSafeInteger(limits?.max_context_length);
|
|
79
|
-
const maxTokens = asPositiveSafeInteger(limits?.max_completion_tokens);
|
|
80
|
-
if (!record || !id || id.length > 512 || /[\s\p{Cc}]/u.test(id) || record.object !== void 0 && record.object !== "model" || record.deprecated === true || !contextWindow || !maxTokens) continue;
|
|
81
|
-
const seed = seeds.get(id);
|
|
82
|
-
const capabilities = asOptionalRecord(record.capabilities);
|
|
83
|
-
models.set(id, {
|
|
84
|
-
...seed,
|
|
85
|
-
id,
|
|
86
|
-
name: normalizeOptionalString(record.name) ?? id,
|
|
87
|
-
reasoning: capabilities?.reasoning === true,
|
|
88
|
-
input: capabilities?.vision === true ? ["text", "image"] : ["text"],
|
|
89
|
-
contextWindow,
|
|
90
|
-
maxTokens,
|
|
91
|
-
cost: normalizeCerebrasModelPricing(record.pricing) ?? {
|
|
92
|
-
input: 0,
|
|
93
|
-
output: 0,
|
|
94
|
-
cacheRead: 0,
|
|
95
|
-
cacheWrite: 0
|
|
96
|
-
},
|
|
97
|
-
compat: {
|
|
98
|
-
...seed?.compat,
|
|
99
|
-
...typeof capabilities?.tools === "boolean" ? { supportsTools: capabilities.tools } : {}
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
return [...models.values()].toSorted((left, right) => left.id.localeCompare(right.id));
|
|
104
|
-
}
|
|
105
71
|
const CEREBRAS_MODEL_DISCOVERY = {
|
|
106
72
|
endpointUrl: {
|
|
107
73
|
url: "https://api.cerebras.ai/public/v1/models",
|
|
108
74
|
requireBaseUrl: openclaw_plugin_default.modelCatalog.providers.cerebras.baseUrl
|
|
109
75
|
},
|
|
110
76
|
authentication: "none",
|
|
111
|
-
projectRows
|
|
77
|
+
projectRows(rows, fallback) {
|
|
78
|
+
const seeds = new Map(fallback.models.map((model) => [model.id, model]));
|
|
79
|
+
const models = /* @__PURE__ */ new Map();
|
|
80
|
+
for (const row of rows) {
|
|
81
|
+
const record = asOptionalRecord(row);
|
|
82
|
+
const id = normalizeOptionalString(record?.id);
|
|
83
|
+
const limits = asOptionalRecord(record?.limits);
|
|
84
|
+
const contextWindow = asPositiveSafeInteger(limits?.max_context_length);
|
|
85
|
+
const maxTokens = asPositiveSafeInteger(limits?.max_completion_tokens);
|
|
86
|
+
if (!record || !id || id.length > 512 || /[\s\p{Cc}]/u.test(id) || record.object !== void 0 && record.object !== "model" || record.deprecated === true || !contextWindow || !maxTokens) continue;
|
|
87
|
+
const seed = seeds.get(id);
|
|
88
|
+
const capabilities = asOptionalRecord(record.capabilities);
|
|
89
|
+
models.set(id, {
|
|
90
|
+
...seed,
|
|
91
|
+
id,
|
|
92
|
+
name: normalizeOptionalString(record.name) ?? id,
|
|
93
|
+
reasoning: capabilities?.reasoning === true,
|
|
94
|
+
input: capabilities?.vision === true ? ["text", "image"] : ["text"],
|
|
95
|
+
contextWindow,
|
|
96
|
+
maxTokens,
|
|
97
|
+
cost: normalizeCerebrasModelPricing(record.pricing) ?? {
|
|
98
|
+
input: 0,
|
|
99
|
+
output: 0,
|
|
100
|
+
cacheRead: 0,
|
|
101
|
+
cacheWrite: 0
|
|
102
|
+
},
|
|
103
|
+
compat: {
|
|
104
|
+
...seed?.compat,
|
|
105
|
+
...typeof capabilities?.tools === "boolean" ? { supportsTools: capabilities.tools } : {}
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return [...models.values()].toSorted((left, right) => left.id.localeCompare(right.id));
|
|
110
|
+
}
|
|
112
111
|
};
|
|
113
112
|
function buildCerebrasProvider() {
|
|
114
113
|
return buildManifestModelProviderConfig({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"entries":[{"output":"api.js","source":"extensions/cerebras/api.ts"},{"output":"index.js","source":"extensions/cerebras/index.ts"},{"output":"onboard.js","source":"extensions/cerebras/onboard.ts"},{"output":"pricing-api.js","source":"extensions/cerebras/pricing-api.ts"},{"output":"provider-catalog.js","source":"extensions/cerebras/provider-catalog.ts"}],"chunks":[{"output":".setup/provider-catalog-ZqtKEfty.mjs","sha256":"0e9a541520edaa20308464037eb9219126325a9241eefc81d8ab977ef4f05e0f","facadeSource":null,"sources":["extensions/cerebras/openclaw.plugin.json","extensions/cerebras/provider-catalog.ts"]},{"output":"api.js","sha256":"653422d51f6374c15a7525bb1f7485df8eaa80eff28ad824eff1d79d6fdff05e","facadeSource":"extensions/cerebras/api.ts","sources":[]},{"output":"index.js","sha256":"00fceb2db6e4658d65e5ba585a7e59cc56d8d4a90ce953372786fea857161437","facadeSource":"extensions/cerebras/index.ts","sources":["extensions/cerebras/index.ts"]},{"output":"onboard.js","sha256":"08f84b3c6f404d02c9da2ec3a8aeae8be29109f8194ec84ea36cc5d6981aec8c","facadeSource":"extensions/cerebras/onboard.ts","sources":["extensions/cerebras/onboard.ts"]},{"output":"pricing-api.js","sha256":"48049d0f549aae8edcc55e943d348370095661a2d07b90edfbfc17566ceec4d5","facadeSource":"extensions/cerebras/pricing-api.ts","sources":["extensions/cerebras/pricing-api.ts"]},{"output":"provider-catalog.js","sha256":"c0980652c2c08b6ec008acf75c17b791b84144930653bc94f51f64d91bbd72e4","facadeSource":"extensions/cerebras/provider-catalog.ts","sources":[]}],"unrenderedSources":["extensions/cerebras/api.ts"]}
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as buildCerebrasProvider, i as buildCerebrasCatalogModels, n as CEREBRAS_MODEL_CATALOG, t as CEREBRAS_BASE_URL } from "./.setup/provider-catalog-
|
|
1
|
+
import { a as buildCerebrasProvider, i as buildCerebrasCatalogModels, n as CEREBRAS_MODEL_CATALOG, t as CEREBRAS_BASE_URL } from "./.setup/provider-catalog-ZqtKEfty.mjs";
|
|
2
2
|
import { CEREBRAS_DEFAULT_MODEL_REF, applyCerebrasConfig } from "./onboard.js";
|
|
3
3
|
export { CEREBRAS_BASE_URL, CEREBRAS_DEFAULT_MODEL_REF, CEREBRAS_MODEL_CATALOG, applyCerebrasConfig, buildCerebrasCatalogModels, buildCerebrasProvider };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as openclaw_plugin_default, r as CEREBRAS_MODEL_DISCOVERY } from "./.setup/provider-catalog-
|
|
1
|
+
import { o as openclaw_plugin_default, r as CEREBRAS_MODEL_DISCOVERY } from "./.setup/provider-catalog-ZqtKEfty.mjs";
|
|
2
2
|
import { applyCerebrasConfig } from "./onboard.js";
|
|
3
3
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
4
4
|
import { applyModelCompatPatch } from "openclaw/plugin-sdk/provider-model-shared";
|
package/dist/onboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as buildCerebrasCatalogModels, o as openclaw_plugin_default, t as CEREBRAS_BASE_URL } from "./.setup/provider-catalog-
|
|
1
|
+
import { i as buildCerebrasCatalogModels, o as openclaw_plugin_default, t as CEREBRAS_BASE_URL } from "./.setup/provider-catalog-ZqtKEfty.mjs";
|
|
2
2
|
import { readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
3
3
|
import { createProviderConnectionPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
4
4
|
//#region extensions/cerebras/onboard.ts
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { CEREBRAS_BASE_URL, CEREBRAS_MODEL_CATALOG, CEREBRAS_MODEL_DISCOVERY, buildCerebrasCatalogModels, buildCerebrasProvider };
|
|
1
|
+
export { t as CEREBRAS_BASE_URL, n as CEREBRAS_MODEL_CATALOG, r as CEREBRAS_MODEL_DISCOVERY, i as buildCerebrasCatalogModels, a as buildCerebrasProvider } from "./.setup/provider-catalog-ZqtKEfty.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/cerebras-provider",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.5-beta.2",
|
|
4
4
|
"description": "OpenClaw Cerebras provider 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.11.
|
|
21
|
+
"pluginApi": ">=2026.11.5-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.11.
|
|
24
|
+
"openclawVersion": "2026.11.5-beta.2",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.11.
|
|
43
|
+
"openclaw": ">=2026.11.5-beta.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|