@openclaw/baseten-provider 2026.7.2-beta.7 → 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 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-BXC6b2FZ.js";
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-BXC6b2FZ.js";
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",
@@ -285,9 +286,6 @@ function readPerTokenPrice(value) {
285
286
  const number = typeof value === "number" ? value : Number(value);
286
287
  return Number.isFinite(number) && number >= 0 ? Number((number * 1e6).toFixed(9)) : void 0;
287
288
  }
288
- function readStringArray(value) {
289
- return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
290
- }
291
289
  function applyLiveReasoningEffortCompat(fallbackCompat, supportsReasoningEffort) {
292
290
  if (supportsReasoningEffort) return {
293
291
  ...fallbackCompat,
@@ -304,8 +302,8 @@ function projectLiveModel(row, fallback) {
304
302
  const id = typeof row.id === "string" ? row.id.trim() : "";
305
303
  if (!id) return;
306
304
  const hasLiveFeatures = Array.isArray(row.supported_features);
307
- const features = new Set(readStringArray(row.supported_features));
308
- const pricing = row.pricing && typeof row.pricing === "object" && !Array.isArray(row.pricing) ? row.pricing : {};
305
+ const features = new Set(filterStringEntries(row.supported_features));
306
+ const pricing = asNonArrayRecord(row.pricing);
309
307
  const inputPrice = readPerTokenPrice(pricing.prompt);
310
308
  const outputPrice = readPerTokenPrice(pricing.completion);
311
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-BXC6b2FZ.js";
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,4 +1,4 @@
1
- import { o as buildStaticBasetenModels, r as BASETEN_DEFAULT_MODEL_REF, t as BASETEN_BASE_URL } from "./models-BXC6b2FZ.js";
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. */
@@ -1,4 +1,4 @@
1
- import { o as buildStaticBasetenModels, t as BASETEN_BASE_URL } from "./models-BXC6b2FZ.js";
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-BXC6b2FZ.js";
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
- ...payload.chat_template_args && typeof payload.chat_template_args === "object" && !Array.isArray(payload.chat_template_args) ? payload.chat_template_args : {},
23
+ ...asNonArrayRecord(payload.chat_template_args),
23
24
  enable_thinking: isThinkingEnabled(ctx.thinkingLevel)
24
25
  };
25
26
  });
package/dist/thinking.js CHANGED
@@ -1,4 +1,4 @@
1
- import { l as usesBasetenChatTemplateThinking } from "./models-BXC6b2FZ.js";
1
+ import { l as usesBasetenChatTemplateThinking } from "./models-DnU_UmMe.js";
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.7.2-beta.7",
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.7.2-beta.7"
21
+ "pluginApi": ">=2026.8.1-beta.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.7",
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.7.2-beta.7"
41
+ "openclaw": ">=2026.8.1-beta.2"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {