@openclaw/venice-provider 2026.7.2-beta.3 → 2026.7.2-beta.4

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/index.js CHANGED
@@ -20,7 +20,6 @@ function applyXaiModelCompat(model) {
20
20
  return applyModelCompatPatch(model, {
21
21
  toolSchemaProfile: "xai",
22
22
  unsupportedToolSchemaKeywords: [...XAI_UNSUPPORTED_SCHEMA_KEYWORDS],
23
- nativeWebSearchTool: true,
24
23
  toolCallArgumentsEncoding: "html-entities"
25
24
  });
26
25
  }
package/dist/usage.js CHANGED
@@ -1,5 +1,5 @@
1
+ import { readProviderJsonObjectResponse } from "openclaw/plugin-sdk/provider-http";
1
2
  import { buildUsageHttpErrorSnapshot } from "openclaw/plugin-sdk/provider-usage";
2
- import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
3
3
  //#region extensions/venice/usage.ts
4
4
  const VENICE_BALANCE_URL = "https://api.venice.ai/api/v1/billing/balance";
5
5
  const VENICE_USAGE_RESPONSE_MAX_BYTES = 1024 * 1024;
@@ -7,18 +7,12 @@ function nonNegativeNumber(value) {
7
7
  const parsed = typeof value === "number" ? value : typeof value === "string" && value.trim() ? Number(value) : NaN;
8
8
  return Number.isFinite(parsed) && parsed >= 0 ? parsed : void 0;
9
9
  }
10
- function objectRecord(value) {
11
- return value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
12
- }
13
10
  async function readPayload(response, timeoutMs) {
14
- const buffer = await readResponseWithLimit(response, VENICE_USAGE_RESPONSE_MAX_BYTES, {
11
+ return await readProviderJsonObjectResponse(response, "Venice usage", {
12
+ maxBytes: VENICE_USAGE_RESPONSE_MAX_BYTES,
15
13
  chunkTimeoutMs: timeoutMs,
16
- onOverflow: ({ maxBytes }) => /* @__PURE__ */ new Error(`Venice usage response exceeds ${maxBytes} bytes`),
17
14
  onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`Venice usage response stalled for ${chunkTimeoutMs}ms`)
18
15
  });
19
- const data = objectRecord(JSON.parse(new TextDecoder().decode(buffer)));
20
- if (!data) throw new Error("Venice usage response is not an object");
21
- return data;
22
16
  }
23
17
  async function fetchVeniceUsage(params) {
24
18
  let response;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/venice-provider",
3
- "version": "2026.7.2-beta.3",
3
+ "version": "2026.7.2-beta.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/venice-provider",
9
- "version": "2026.7.2-beta.3"
9
+ "version": "2026.7.2-beta.4"
10
10
  }
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/venice-provider",
3
- "version": "2026.7.2-beta.3",
3
+ "version": "2026.7.2-beta.4",
4
4
  "description": "OpenClaw Venice provider plugin",
5
5
  "type": "module",
6
6
  "openclaw": {
@@ -14,10 +14,10 @@
14
14
  "minHostVersion": ">=2026.6.9"
15
15
  },
16
16
  "compat": {
17
- "pluginApi": ">=2026.7.2-beta.3"
17
+ "pluginApi": ">=2026.7.2-beta.4"
18
18
  },
19
19
  "build": {
20
- "openclawVersion": "2026.7.2-beta.3",
20
+ "openclawVersion": "2026.7.2-beta.4",
21
21
  "bundledDist": false
22
22
  },
23
23
  "release": {
@@ -39,7 +39,7 @@
39
39
  "README.md"
40
40
  ],
41
41
  "peerDependencies": {
42
- "openclaw": ">=2026.7.2-beta.3"
42
+ "openclaw": ">=2026.7.2-beta.4"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {