@openclaw/venice-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/api.js CHANGED
@@ -1,2 +1 @@
1
- import { n as VENICE_DEFAULT_MODEL_REF, r as VENICE_MODEL_CATALOG, t as VENICE_BASE_URL } from "./.setup/models-D73jPrCr.mjs";
2
- export { VENICE_BASE_URL, VENICE_DEFAULT_MODEL_REF, VENICE_MODEL_CATALOG };
1
+ export { t as VENICE_BASE_URL, n as VENICE_DEFAULT_MODEL_REF, r as VENICE_MODEL_CATALOG } from "./.setup/models-D73jPrCr.mjs";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as openclaw_plugin_default, i as VENICE_MODEL_DISCOVERY_OPTIONS } from "./.setup/models-D73jPrCr.mjs";
1
+ import { a as openclaw_plugin_default, i as VENICE_MODEL_DISCOVERY_OPTIONS, t as VENICE_BASE_URL } from "./.setup/models-D73jPrCr.mjs";
2
2
  import { applyVeniceConfig } from "./onboard.js";
3
3
  import { buildStaticVeniceProvider } from "./provider-catalog.js";
4
4
  import { createVeniceStreamWrapper } from "./stream.js";
@@ -41,14 +41,20 @@ var venice_default = defineSingleProviderPluginEntry({
41
41
  buildProvider: buildStaticVeniceProvider,
42
42
  liveModelDiscovery: VENICE_MODEL_DISCOVERY_OPTIONS
43
43
  },
44
- normalizeResolvedModel: ({ modelId, model }) => isXaiBackedVeniceModel(modelId) ? applyModelCompatPatch(model, {
45
- toolSchemaProfile: "xai",
46
- unsupportedToolSchemaKeywords: [...XAI_UNSUPPORTED_SCHEMA_KEYWORDS],
47
- toolCallArgumentsEncoding: "html-entities"
48
- }) : void 0,
44
+ normalizeResolvedModel: ({ modelId, model }) => {
45
+ const normalized = isXaiBackedVeniceModel(modelId) ? applyModelCompatPatch(model, {
46
+ toolSchemaProfile: "xai",
47
+ unsupportedToolSchemaKeywords: [...XAI_UNSUPPORTED_SCHEMA_KEYWORDS],
48
+ toolCallArgumentsEncoding: "html-entities"
49
+ }) : model;
50
+ return model.api === "openai-completions" && model.baseUrl?.trim().replace(/\/+$/u, "") === VENICE_BASE_URL ? applyModelCompatPatch(normalized, {
51
+ supportsPromptCacheKey: model.compat?.supportsPromptCacheKey ?? true,
52
+ supportsLongCacheRetention: model.compat?.supportsLongCacheRetention ?? false
53
+ }) : normalized;
54
+ },
49
55
  wrapStreamFn: (ctx) => createVeniceStreamWrapper(ctx.streamFn),
50
56
  resolveUsageAuth: async (ctx) => {
51
- const apiKey = ctx.resolveApiKeyFromConfigAndStore({ envDirect: [ctx.env.VENICE_API_KEY] });
57
+ const apiKey = (await ctx.resolveApiKeyCandidatesFromConfigAndStore?.({ envDirect: [ctx.env.VENICE_API_KEY] }))?.[0];
52
58
  return apiKey ? { token: apiKey } : null;
53
59
  },
54
60
  fetchUsageSnapshot: async (ctx) => await fetchVeniceUsage({
package/dist/models.js CHANGED
@@ -1,2 +1 @@
1
- import { i as VENICE_MODEL_DISCOVERY_OPTIONS, n as VENICE_DEFAULT_MODEL_REF, r as VENICE_MODEL_CATALOG, t as VENICE_BASE_URL } from "./.setup/models-D73jPrCr.mjs";
2
- export { VENICE_BASE_URL, VENICE_DEFAULT_MODEL_REF, VENICE_MODEL_CATALOG, VENICE_MODEL_DISCOVERY_OPTIONS };
1
+ export { t as VENICE_BASE_URL, n as VENICE_DEFAULT_MODEL_REF, r as VENICE_MODEL_CATALOG, i as VENICE_MODEL_DISCOVERY_OPTIONS } from "./.setup/models-D73jPrCr.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/venice-provider",
3
- "version": "2026.10.5-beta.4",
3
+ "version": "2026.10.10-beta.2",
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.10.5-beta.4"
17
+ "pluginApi": ">=2026.10.10-beta.2"
18
18
  },
19
19
  "build": {
20
- "openclawVersion": "2026.10.5-beta.4",
20
+ "openclawVersion": "2026.10.10-beta.2",
21
21
  "bundledDist": false
22
22
  },
23
23
  "release": {
@@ -40,7 +40,7 @@
40
40
  "assets/activity.svg"
41
41
  ],
42
42
  "peerDependencies": {
43
- "openclaw": ">=2026.10.5-beta.4"
43
+ "openclaw": ">=2026.10.10-beta.2"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {