@openclaw/cerebras-provider 2026.10.5-beta.4 → 2026.10.10-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-DycAcVkn.mjs → provider-catalog-BiNR-qKR.mjs} +16 -47
- package/dist/api.js +1 -1
- package/dist/index.js +7 -2
- package/dist/onboard.js +2 -2
- package/dist/pricing-api.js +10 -3
- package/dist/provider-catalog.js +1 -2
- package/openclaw.plugin.json +2 -31
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { normalizeCerebrasModelPricing } from "../pricing-api.js";
|
|
1
2
|
import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
|
-
import { normalizeOpenRouterModelPricing } from "openclaw/plugin-sdk/model-catalog-pricing";
|
|
3
3
|
import { asOptionalRecord, asPositiveSafeInteger, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
//#region extensions/cerebras/openclaw.plugin.json
|
|
5
5
|
var openclaw_plugin_default = {
|
|
@@ -19,52 +19,21 @@ var openclaw_plugin_default = {
|
|
|
19
19
|
"providers": { "cerebras": {
|
|
20
20
|
"baseUrl": "https://api.cerebras.ai/v1",
|
|
21
21
|
"api": "openai-completions",
|
|
22
|
-
"defaultModel": "
|
|
23
|
-
"models": [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"cacheRead": 2.25,
|
|
36
|
-
"cacheWrite": 2.75
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "gpt-oss-120b",
|
|
41
|
-
"name": "GPT OSS 120B",
|
|
42
|
-
"input": ["text"],
|
|
43
|
-
"reasoning": true,
|
|
44
|
-
"contextWindow": 131072,
|
|
45
|
-
"maxTokens": 40960,
|
|
46
|
-
"cost": {
|
|
47
|
-
"input": .35,
|
|
48
|
-
"output": .75,
|
|
49
|
-
"cacheRead": 0,
|
|
50
|
-
"cacheWrite": 0
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"id": "gemma-4-31b",
|
|
55
|
-
"name": "Gemma 4 31B",
|
|
56
|
-
"input": ["text", "image"],
|
|
57
|
-
"reasoning": true,
|
|
58
|
-
"contextWindow": 131072,
|
|
59
|
-
"maxTokens": 40960,
|
|
60
|
-
"cost": {
|
|
61
|
-
"input": .99,
|
|
62
|
-
"output": 1.49,
|
|
63
|
-
"cacheRead": 0,
|
|
64
|
-
"cacheWrite": 0
|
|
65
|
-
}
|
|
22
|
+
"defaultModel": "gpt-oss-120b",
|
|
23
|
+
"models": [{
|
|
24
|
+
"id": "gpt-oss-120b",
|
|
25
|
+
"name": "GPT OSS 120B",
|
|
26
|
+
"input": ["text"],
|
|
27
|
+
"reasoning": true,
|
|
28
|
+
"contextWindow": 131072,
|
|
29
|
+
"maxTokens": 40960,
|
|
30
|
+
"cost": {
|
|
31
|
+
"input": .35,
|
|
32
|
+
"output": .75,
|
|
33
|
+
"cacheRead": .35,
|
|
34
|
+
"cacheWrite": 0
|
|
66
35
|
}
|
|
67
|
-
]
|
|
36
|
+
}]
|
|
68
37
|
} },
|
|
69
38
|
"discovery": { "cerebras": "refreshable" }
|
|
70
39
|
},
|
|
@@ -119,7 +88,7 @@ function projectCerebrasModels(rows, fallback) {
|
|
|
119
88
|
input: capabilities?.vision === true ? ["text", "image"] : ["text"],
|
|
120
89
|
contextWindow,
|
|
121
90
|
maxTokens,
|
|
122
|
-
cost:
|
|
91
|
+
cost: normalizeCerebrasModelPricing(record.pricing) ?? {
|
|
123
92
|
input: 0,
|
|
124
93
|
output: 0,
|
|
125
94
|
cacheRead: 0,
|
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-BiNR-qKR.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,6 +1,7 @@
|
|
|
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-BiNR-qKR.mjs";
|
|
2
2
|
import { applyCerebrasConfig } from "./onboard.js";
|
|
3
3
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
4
|
+
import { applyModelCompatPatch } from "openclaw/plugin-sdk/provider-model-shared";
|
|
4
5
|
var cerebras_default = defineSingleProviderPluginEntry({
|
|
5
6
|
id: "cerebras",
|
|
6
7
|
name: "Cerebras Provider",
|
|
@@ -19,7 +20,11 @@ var cerebras_default = defineSingleProviderPluginEntry({
|
|
|
19
20
|
discoveryMode: "strict",
|
|
20
21
|
allowExplicitBaseUrl: true,
|
|
21
22
|
liveModelDiscovery: CEREBRAS_MODEL_DISCOVERY
|
|
22
|
-
}
|
|
23
|
+
},
|
|
24
|
+
normalizeResolvedModel: ({ model }) => model.api === "openai-completions" && model.baseUrl.trim().replace(/\/+$/u, "") === "https://api.cerebras.ai/v1" ? applyModelCompatPatch(model, {
|
|
25
|
+
supportsPromptCacheKey: model.compat?.supportsPromptCacheKey ?? true,
|
|
26
|
+
supportsLongCacheRetention: model.compat?.supportsLongCacheRetention ?? false
|
|
27
|
+
}) : model
|
|
23
28
|
}
|
|
24
29
|
});
|
|
25
30
|
//#endregion
|
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-BiNR-qKR.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
|
|
@@ -12,7 +12,7 @@ const { applyConfig: applyCerebrasConfig } = createProviderConnectionPresetAppli
|
|
|
12
12
|
catalogModels: buildCerebrasCatalogModels,
|
|
13
13
|
aliases: [{
|
|
14
14
|
modelRef: CEREBRAS_DEFAULT_MODEL_REF,
|
|
15
|
-
alias: "Cerebras
|
|
15
|
+
alias: "Cerebras GPT OSS 120B"
|
|
16
16
|
}]
|
|
17
17
|
})
|
|
18
18
|
});
|
package/dist/pricing-api.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { normalizeModelPricingCatalog, normalizeOpenRouterModelPricing } from "openclaw/plugin-sdk/model-catalog-pricing";
|
|
2
1
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
|
+
import { normalizeModelPricingCatalog, normalizeOpenRouterModelPricing } from "openclaw/plugin-sdk/model-catalog-pricing";
|
|
3
3
|
//#region extensions/cerebras/pricing-api.ts
|
|
4
|
+
function normalizeCerebrasModelPricing(value) {
|
|
5
|
+
const pricing = asOptionalRecord(value);
|
|
6
|
+
return pricing ? normalizeOpenRouterModelPricing({
|
|
7
|
+
...pricing,
|
|
8
|
+
input_cache_read: pricing.input_cache_read ?? pricing.prompt
|
|
9
|
+
}) : void 0;
|
|
10
|
+
}
|
|
4
11
|
function parseCerebrasPricingCatalog(payload) {
|
|
5
|
-
return normalizeModelPricingCatalog(asOptionalRecord(payload)?.data,
|
|
12
|
+
return normalizeModelPricingCatalog(asOptionalRecord(payload)?.data, normalizeCerebrasModelPricing);
|
|
6
13
|
}
|
|
7
14
|
//#endregion
|
|
8
|
-
export { parseCerebrasPricingCatalog };
|
|
15
|
+
export { normalizeCerebrasModelPricing, parseCerebrasPricingCatalog };
|
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-BiNR-qKR.mjs";
|
package/openclaw.plugin.json
CHANGED
|
@@ -32,23 +32,8 @@
|
|
|
32
32
|
"cerebras": {
|
|
33
33
|
"baseUrl": "https://api.cerebras.ai/v1",
|
|
34
34
|
"api": "openai-completions",
|
|
35
|
-
"defaultModel": "
|
|
35
|
+
"defaultModel": "gpt-oss-120b",
|
|
36
36
|
"models": [
|
|
37
|
-
{
|
|
38
|
-
"id": "zai-glm-4.7",
|
|
39
|
-
"name": "Z.ai GLM 4.7",
|
|
40
|
-
"status": "deprecated",
|
|
41
|
-
"input": ["text"],
|
|
42
|
-
"reasoning": true,
|
|
43
|
-
"contextWindow": 131072,
|
|
44
|
-
"maxTokens": 40960,
|
|
45
|
-
"cost": {
|
|
46
|
-
"input": 2.25,
|
|
47
|
-
"output": 2.75,
|
|
48
|
-
"cacheRead": 2.25,
|
|
49
|
-
"cacheWrite": 2.75
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
37
|
{
|
|
53
38
|
"id": "gpt-oss-120b",
|
|
54
39
|
"name": "GPT OSS 120B",
|
|
@@ -59,21 +44,7 @@
|
|
|
59
44
|
"cost": {
|
|
60
45
|
"input": 0.35,
|
|
61
46
|
"output": 0.75,
|
|
62
|
-
"cacheRead": 0,
|
|
63
|
-
"cacheWrite": 0
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"id": "gemma-4-31b",
|
|
68
|
-
"name": "Gemma 4 31B",
|
|
69
|
-
"input": ["text", "image"],
|
|
70
|
-
"reasoning": true,
|
|
71
|
-
"contextWindow": 131072,
|
|
72
|
-
"maxTokens": 40960,
|
|
73
|
-
"cost": {
|
|
74
|
-
"input": 0.99,
|
|
75
|
-
"output": 1.49,
|
|
76
|
-
"cacheRead": 0,
|
|
47
|
+
"cacheRead": 0.35,
|
|
77
48
|
"cacheWrite": 0
|
|
78
49
|
}
|
|
79
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/cerebras-provider",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.10-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.10.
|
|
21
|
+
"pluginApi": ">=2026.10.10-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.10.
|
|
24
|
+
"openclawVersion": "2026.10.10-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.10.
|
|
43
|
+
"openclaw": ">=2026.10.10-beta.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|