@openclaw/baseten-provider 2026.11.2 → 2026.11.3
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/{models-CXwQahwx.mjs → models-wG5xIuOb.mjs} +5 -4
- package/dist/api.js +1 -1
- package/dist/index.js +1 -1
- package/dist/models.js +1 -1
- package/dist/onboard.js +1 -1
- package/dist/provider-catalog.js +1 -1
- package/dist/stream.js +1 -1
- package/dist/thinking.js +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolveDefaultModelMaxTokens } from "openclaw/plugin-sdk/provider-model-shared";
|
|
1
2
|
import { buildManifestModelProviderConfig, readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
|
|
2
3
|
import { asNonArrayRecord, asOptionalRecord, asPositiveSafeInteger, filterStringEntries, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
4
|
//#region extensions/baseten/openclaw.plugin.json
|
|
@@ -220,7 +221,6 @@ const BASETEN_MODEL_COMPAT = new Map(buildManifestModelProviderConfig({
|
|
|
220
221
|
catalog: BASETEN_MANIFEST_CATALOG
|
|
221
222
|
}).models.map(({ id, compat }) => [id, compat]));
|
|
222
223
|
const DEFAULT_CONTEXT_WINDOW = 128e3;
|
|
223
|
-
const DEFAULT_MAX_TOKENS = 8192;
|
|
224
224
|
const CHAT_TEMPLATE_THINKING_MODEL_IDS = /* @__PURE__ */ new Set([
|
|
225
225
|
"zai-org/glm-4.7",
|
|
226
226
|
"zai-org/glm-5.2",
|
|
@@ -283,6 +283,7 @@ function projectLiveModel(row, fallback) {
|
|
|
283
283
|
const inputPrice = readPerTokenPrice(pricing.prompt);
|
|
284
284
|
const outputPrice = readPerTokenPrice(pricing.completion);
|
|
285
285
|
const cacheReadPrice = readPerTokenPrice(pricing.input_cache_read);
|
|
286
|
+
const contextWindow = asPositiveSafeInteger(Number(row.context_length)) ?? fallback?.contextWindow ?? DEFAULT_CONTEXT_WINDOW;
|
|
286
287
|
const hasDocumentedSparseFeatures = ["deepseek-ai/DeepSeek-V4.1-Flash", "deepseek-ai/DeepSeek-V4-Pro-0813"].includes(id) && [
|
|
287
288
|
"tools",
|
|
288
289
|
"reasoning",
|
|
@@ -303,8 +304,8 @@ function projectLiveModel(row, fallback) {
|
|
|
303
304
|
cacheRead: cacheReadPrice ?? fallback?.cost.cacheRead ?? 0,
|
|
304
305
|
cacheWrite: fallback?.cost.cacheWrite ?? 0
|
|
305
306
|
},
|
|
306
|
-
contextWindow
|
|
307
|
-
maxTokens: asPositiveSafeInteger(Number(row.max_completion_tokens)) ?? fallback?.maxTokens ??
|
|
307
|
+
contextWindow,
|
|
308
|
+
maxTokens: asPositiveSafeInteger(Number(row.max_completion_tokens)) ?? fallback?.maxTokens ?? resolveDefaultModelMaxTokens(contextWindow),
|
|
308
309
|
compat
|
|
309
310
|
};
|
|
310
311
|
}
|
|
@@ -342,7 +343,7 @@ function resolveBasetenDynamicModel(modelId) {
|
|
|
342
343
|
cacheWrite: 0
|
|
343
344
|
},
|
|
344
345
|
contextWindow: DEFAULT_CONTEXT_WINDOW,
|
|
345
|
-
maxTokens:
|
|
346
|
+
maxTokens: resolveDefaultModelMaxTokens(DEFAULT_CONTEXT_WINDOW),
|
|
346
347
|
compat: buildBasetenModelCompat(id)
|
|
347
348
|
};
|
|
348
349
|
}
|
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 "./.setup/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 "./.setup/models-wG5xIuOb.mjs";
|
|
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 "./.setup/models-
|
|
1
|
+
import { c as resolveBasetenDynamicModel, s as projectBasetenLiveModels, u as openclaw_plugin_default } from "./.setup/models-wG5xIuOb.mjs";
|
|
2
2
|
import { applyBasetenSetupConfig } from "./onboard.js";
|
|
3
3
|
import { buildStaticBasetenProvider } from "./provider-catalog.js";
|
|
4
4
|
import { createBasetenThinkingWrapper } from "./stream.js";
|
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 "./.setup/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 "./.setup/models-wG5xIuOb.mjs";
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./.setup/models-
|
|
1
|
+
import { o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./.setup/models-wG5xIuOb.mjs";
|
|
2
2
|
import { createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
3
|
//#region extensions/baseten/onboard.ts
|
|
4
4
|
const { applyConfig } = createModelCatalogPresetAppliers({
|
package/dist/provider-catalog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as buildStaticBasetenModels, t as BASETEN_BASE_URL } from "./.setup/models-
|
|
1
|
+
import { o as buildStaticBasetenModels, t as BASETEN_BASE_URL } from "./.setup/models-wG5xIuOb.mjs";
|
|
2
2
|
//#region extensions/baseten/provider-catalog.ts
|
|
3
3
|
function buildStaticBasetenProvider() {
|
|
4
4
|
return {
|
package/dist/stream.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as usesBasetenChatTemplateThinking, t as BASETEN_BASE_URL } from "./.setup/models-
|
|
1
|
+
import { l as usesBasetenChatTemplateThinking, t as BASETEN_BASE_URL } from "./.setup/models-wG5xIuOb.mjs";
|
|
2
2
|
import { asNonArrayRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { streamSimple } from "openclaw/plugin-sdk/llm";
|
|
4
4
|
import { normalizeOpenAICompatibleReasoningReplay, streamWithPayloadPatch } from "openclaw/plugin-sdk/provider-stream-shared";
|
package/dist/thinking.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as usesBasetenChatTemplateThinking } from "./.setup/models-
|
|
1
|
+
import { l as usesBasetenChatTemplateThinking } from "./.setup/models-wG5xIuOb.mjs";
|
|
2
2
|
//#region extensions/baseten/thinking.ts
|
|
3
3
|
const BASETEN_BINARY_THINKING_PROFILE = {
|
|
4
4
|
levels: [{ id: "off" }, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/baseten-provider",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.3",
|
|
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.11.
|
|
21
|
+
"pluginApi": ">=2026.11.3"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.11.
|
|
24
|
+
"openclawVersion": "2026.11.3",
|
|
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.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|