@openclaw/baseten-provider 2026.7.2-beta.5 → 2026.8.1-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/api.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{models-B_KWtCCg.js → models-DnU_UmMe.js} +7 -7
- package/dist/models.js +1 -1
- package/dist/onboard.js +4 -7
- package/dist/provider-catalog.js +1 -1
- package/dist/stream.js +3 -2
- package/dist/thinking.js +1 -1
- package/openclaw.plugin.json +6 -0
- package/package.json +4 -4
package/dist/api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as buildBasetenModelCompat, c as resolveBasetenDynamicModel, i as BASETEN_MODEL_CATALOG, l as usesBasetenChatTemplateThinking, n as BASETEN_DEFAULT_MODEL_ID, o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-
|
|
1
|
+
import { a as buildBasetenModelCompat, c as resolveBasetenDynamicModel, i as BASETEN_MODEL_CATALOG, l as usesBasetenChatTemplateThinking, n as BASETEN_DEFAULT_MODEL_ID, o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-DnU_UmMe.js";
|
|
2
2
|
import { applyBasetenConfig } from "./onboard.js";
|
|
3
3
|
import { buildStaticBasetenProvider } from "./provider-catalog.js";
|
|
4
4
|
export { BASETEN_BASE_URL, BASETEN_DEFAULT_MODEL_ID, BASETEN_DEFAULT_MODEL_REF, BASETEN_MODEL_CATALOG, applyBasetenConfig, buildBasetenModelCompat, buildStaticBasetenModels, buildStaticBasetenProvider, resolveBasetenDynamicModel, usesBasetenChatTemplateThinking };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as resolveBasetenDynamicModel, s as projectBasetenLiveModels, u as openclaw_plugin_default } from "./models-
|
|
1
|
+
import { c as resolveBasetenDynamicModel, s as projectBasetenLiveModels, u as openclaw_plugin_default } from "./models-DnU_UmMe.js";
|
|
2
2
|
import { applyBasetenConfig } from "./onboard.js";
|
|
3
3
|
import { buildStaticBasetenProvider } from "./provider-catalog.js";
|
|
4
4
|
import { createBasetenThinkingWrapper } from "./stream.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { buildManifestModelDefinition, readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
|
+
import { asNonArrayRecord, filterStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
3
|
//#region extensions/baseten/openclaw.plugin.json
|
|
3
4
|
var openclaw_plugin_default = {
|
|
4
5
|
id: "baseten",
|
|
@@ -29,7 +30,8 @@ var openclaw_plugin_default = {
|
|
|
29
30
|
"output": 3.48,
|
|
30
31
|
"cacheRead": .145,
|
|
31
32
|
"cacheWrite": 0
|
|
32
|
-
}
|
|
33
|
+
},
|
|
34
|
+
"compat": { "codeMode": "capable" }
|
|
33
35
|
},
|
|
34
36
|
{
|
|
35
37
|
"id": "zai-org/GLM-4.7",
|
|
@@ -57,7 +59,8 @@ var openclaw_plugin_default = {
|
|
|
57
59
|
"output": 4.4,
|
|
58
60
|
"cacheRead": .14,
|
|
59
61
|
"cacheWrite": 0
|
|
60
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"compat": { "codeMode": "capable" }
|
|
61
64
|
},
|
|
62
65
|
{
|
|
63
66
|
"id": "zai-org/GLM-5.2-Fast",
|
|
@@ -283,9 +286,6 @@ function readPerTokenPrice(value) {
|
|
|
283
286
|
const number = typeof value === "number" ? value : Number(value);
|
|
284
287
|
return Number.isFinite(number) && number >= 0 ? Number((number * 1e6).toFixed(9)) : void 0;
|
|
285
288
|
}
|
|
286
|
-
function readStringArray(value) {
|
|
287
|
-
return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
288
|
-
}
|
|
289
289
|
function applyLiveReasoningEffortCompat(fallbackCompat, supportsReasoningEffort) {
|
|
290
290
|
if (supportsReasoningEffort) return {
|
|
291
291
|
...fallbackCompat,
|
|
@@ -302,8 +302,8 @@ function projectLiveModel(row, fallback) {
|
|
|
302
302
|
const id = typeof row.id === "string" ? row.id.trim() : "";
|
|
303
303
|
if (!id) return;
|
|
304
304
|
const hasLiveFeatures = Array.isArray(row.supported_features);
|
|
305
|
-
const features = new Set(
|
|
306
|
-
const pricing =
|
|
305
|
+
const features = new Set(filterStringEntries(row.supported_features));
|
|
306
|
+
const pricing = asNonArrayRecord(row.pricing);
|
|
307
307
|
const inputPrice = readPerTokenPrice(pricing.prompt);
|
|
308
308
|
const outputPrice = readPerTokenPrice(pricing.completion);
|
|
309
309
|
const cacheReadPrice = readPerTokenPrice(pricing.input_cache_read);
|
package/dist/models.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as buildBasetenModelCompat, c as resolveBasetenDynamicModel, i as BASETEN_MODEL_CATALOG, l as usesBasetenChatTemplateThinking, n as BASETEN_DEFAULT_MODEL_ID, o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, s as projectBasetenLiveModels, t as BASETEN_BASE_URL } from "./models-
|
|
1
|
+
import { a as buildBasetenModelCompat, c as resolveBasetenDynamicModel, i as BASETEN_MODEL_CATALOG, l as usesBasetenChatTemplateThinking, n as BASETEN_DEFAULT_MODEL_ID, o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, s as projectBasetenLiveModels, t as BASETEN_BASE_URL } from "./models-DnU_UmMe.js";
|
|
2
2
|
export { BASETEN_BASE_URL, BASETEN_DEFAULT_MODEL_ID, BASETEN_DEFAULT_MODEL_REF, BASETEN_MODEL_CATALOG, buildBasetenModelCompat, buildStaticBasetenModels, projectBasetenLiveModels, resolveBasetenDynamicModel, usesBasetenChatTemplateThinking };
|
package/dist/onboard.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-
|
|
1
|
+
import { o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-DnU_UmMe.js";
|
|
2
2
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
3
|
//#region extensions/baseten/onboard.ts
|
|
4
4
|
/** Baseten onboarding config helpers. */
|
|
5
|
-
|
|
5
|
+
/** Applies Baseten's provider catalog, Inkling alias, and default model. */
|
|
6
|
+
const { applyConfig: applyBasetenConfig } = createModelCatalogPresetAppliers({
|
|
6
7
|
primaryModelRef: BASETEN_DEFAULT_MODEL_REF,
|
|
7
|
-
resolveParams: (
|
|
8
|
+
resolveParams: () => ({
|
|
8
9
|
providerId: "baseten",
|
|
9
10
|
api: "openai-completions",
|
|
10
11
|
baseUrl: BASETEN_BASE_URL,
|
|
@@ -15,9 +16,5 @@ const basetenPresetAppliers = createModelCatalogPresetAppliers({
|
|
|
15
16
|
}]
|
|
16
17
|
})
|
|
17
18
|
});
|
|
18
|
-
/** Applies Baseten's provider catalog, Inkling alias, and default model. */
|
|
19
|
-
function applyBasetenConfig(cfg) {
|
|
20
|
-
return basetenPresetAppliers.applyConfig(cfg);
|
|
21
|
-
}
|
|
22
19
|
//#endregion
|
|
23
20
|
export { applyBasetenConfig };
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as buildStaticBasetenModels, t as BASETEN_BASE_URL } from "./models-
|
|
1
|
+
import { o as buildStaticBasetenModels, t as BASETEN_BASE_URL } from "./models-DnU_UmMe.js";
|
|
2
2
|
//#region extensions/baseten/provider-catalog.ts
|
|
3
3
|
/** Builds Baseten's network-free fallback provider catalog. */
|
|
4
4
|
function buildStaticBasetenProvider() {
|
package/dist/stream.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { l as usesBasetenChatTemplateThinking } from "./models-
|
|
1
|
+
import { l as usesBasetenChatTemplateThinking } from "./models-DnU_UmMe.js";
|
|
2
|
+
import { asNonArrayRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
3
|
import { createPayloadPatchStreamWrapper, normalizeOpenAICompatibleReasoningReplay } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
3
4
|
//#region extensions/baseten/stream.ts
|
|
4
5
|
const BASETEN_DEEPSEEK_V4_MODEL_ID = "deepseek-ai/deepseek-v4-pro";
|
|
@@ -19,7 +20,7 @@ function createBasetenThinkingWrapper(ctx) {
|
|
|
19
20
|
});
|
|
20
21
|
if (!usesBasetenChatTemplateThinking(model.id)) return;
|
|
21
22
|
payload.chat_template_args = {
|
|
22
|
-
...
|
|
23
|
+
...asNonArrayRecord(payload.chat_template_args),
|
|
23
24
|
enable_thinking: isThinkingEnabled(ctx.thinkingLevel)
|
|
24
25
|
};
|
|
25
26
|
});
|
package/dist/thinking.js
CHANGED
package/openclaw.plugin.json
CHANGED
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
"output": 3.48,
|
|
41
41
|
"cacheRead": 0.145,
|
|
42
42
|
"cacheWrite": 0
|
|
43
|
+
},
|
|
44
|
+
"compat": {
|
|
45
|
+
"codeMode": "capable"
|
|
43
46
|
}
|
|
44
47
|
},
|
|
45
48
|
{
|
|
@@ -72,6 +75,9 @@
|
|
|
72
75
|
"output": 4.4,
|
|
73
76
|
"cacheRead": 0.14,
|
|
74
77
|
"cacheWrite": 0
|
|
78
|
+
},
|
|
79
|
+
"compat": {
|
|
80
|
+
"codeMode": "capable"
|
|
75
81
|
}
|
|
76
82
|
},
|
|
77
83
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/baseten-provider",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.8.1-beta.2",
|
|
4
4
|
"description": "OpenClaw Baseten 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.
|
|
21
|
+
"pluginApi": ">=2026.8.1-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.
|
|
24
|
+
"openclawVersion": "2026.8.1-beta.2",
|
|
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.8.1-beta.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"openclaw": {
|