@openclaw/venice-provider 2026.7.2-beta.5 → 2026.7.33

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/usage.js CHANGED
@@ -1,18 +1,24 @@
1
- import { readProviderJsonObjectResponse } from "openclaw/plugin-sdk/provider-http";
2
1
  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
- const VENICE_USAGE_RESPONSE_MAX_BYTES = 1024 * 1024;
5
+ const VENICE_USAGE_RESPONSE_MAX_BYTES = 1048576;
6
6
  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
+ }
10
13
  async function readPayload(response, timeoutMs) {
11
- return await readProviderJsonObjectResponse(response, "Venice usage", {
12
- maxBytes: VENICE_USAGE_RESPONSE_MAX_BYTES,
14
+ const buffer = await readResponseWithLimit(response, VENICE_USAGE_RESPONSE_MAX_BYTES, {
13
15
  chunkTimeoutMs: timeoutMs,
16
+ onOverflow: ({ maxBytes }) => /* @__PURE__ */ new Error(`Venice usage response exceeds ${maxBytes} bytes`),
14
17
  onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`Venice usage response stalled for ${chunkTimeoutMs}ms`)
15
18
  });
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;
16
22
  }
17
23
  async function fetchVeniceUsage(params) {
18
24
  let response;
@@ -43,64 +43,125 @@
43
43
  "venice": {
44
44
  "baseUrl": "https://api.venice.ai/api/v1",
45
45
  "api": "openai-completions",
46
- "defaultModel": "zai-org-glm-4.7",
47
46
  "models": [
48
47
  {
49
- "id": "zai-org-glm-5-2",
50
- "name": "GLM 5.2",
51
- "reasoning": true,
48
+ "id": "llama-3.3-70b",
49
+ "name": "Llama 3.3 70B",
50
+ "reasoning": false,
52
51
  "input": ["text"],
53
- "contextWindow": 1000000,
54
- "maxTokens": 131072,
55
- "cost": { "input": 1.4, "output": 4.4, "cacheRead": 0.26, "cacheWrite": 0 },
52
+ "contextWindow": 128000,
53
+ "maxTokens": 4096,
56
54
  "compat": {
57
55
  "supportsUsageInStreaming": false
58
56
  }
59
57
  },
60
58
  {
61
- "id": "zai-org-glm-4.7",
62
- "name": "GLM 4.7",
59
+ "id": "llama-3.2-3b",
60
+ "name": "Llama 3.2 3B",
61
+ "reasoning": false,
62
+ "input": ["text"],
63
+ "contextWindow": 128000,
64
+ "maxTokens": 4096,
65
+ "compat": {
66
+ "supportsUsageInStreaming": false
67
+ }
68
+ },
69
+ {
70
+ "id": "hermes-3-llama-3.1-405b",
71
+ "name": "Hermes 3 Llama 3.1 405B",
72
+ "reasoning": false,
73
+ "input": ["text"],
74
+ "contextWindow": 128000,
75
+ "maxTokens": 16384,
76
+ "compat": {
77
+ "supportsUsageInStreaming": false,
78
+ "supportsTools": false
79
+ }
80
+ },
81
+ {
82
+ "id": "qwen3-235b-a22b-thinking-2507",
83
+ "name": "Qwen3 235B Thinking",
63
84
  "reasoning": true,
64
85
  "input": ["text"],
65
- "contextWindow": 198000,
86
+ "contextWindow": 128000,
66
87
  "maxTokens": 16384,
67
- "cost": { "input": 0.55, "output": 2.65, "cacheRead": 0.11, "cacheWrite": 0 },
68
88
  "compat": {
69
89
  "supportsUsageInStreaming": false
70
90
  }
71
91
  },
72
92
  {
73
- "id": "venice-uncensored-1-2",
74
- "name": "Venice Uncensored 1.2",
93
+ "id": "qwen3-235b-a22b-instruct-2507",
94
+ "name": "Qwen3 235B Instruct",
75
95
  "reasoning": false,
76
- "input": ["text", "image"],
96
+ "input": ["text"],
77
97
  "contextWindow": 128000,
78
- "maxTokens": 8192,
79
- "cost": { "input": 0.2, "output": 0.9, "cacheRead": 0, "cacheWrite": 0 },
98
+ "maxTokens": 16384,
80
99
  "compat": {
81
100
  "supportsUsageInStreaming": false
82
101
  }
83
102
  },
84
103
  {
85
- "id": "google-gemma-4-31b-it",
86
- "name": "Google Gemma 4 31B Instruct",
87
- "reasoning": true,
88
- "input": ["text", "image"],
104
+ "id": "qwen3-coder-480b-a35b-instruct",
105
+ "name": "Qwen3 Coder 480B",
106
+ "reasoning": false,
107
+ "input": ["text"],
89
108
  "contextWindow": 256000,
90
- "maxTokens": 8192,
91
- "cost": { "input": 0.12, "output": 0.36, "cacheRead": 0.09, "cacheWrite": 0 },
109
+ "maxTokens": 65536,
92
110
  "compat": {
93
111
  "supportsUsageInStreaming": false
94
112
  }
95
113
  },
96
114
  {
97
- "id": "kimi-k2-6",
98
- "name": "Kimi K2.6",
115
+ "id": "qwen3-coder-480b-a35b-instruct-turbo",
116
+ "name": "Qwen3 Coder 480B Turbo",
117
+ "reasoning": false,
118
+ "input": ["text"],
119
+ "contextWindow": 256000,
120
+ "maxTokens": 65536,
121
+ "compat": {
122
+ "supportsUsageInStreaming": false
123
+ }
124
+ },
125
+ {
126
+ "id": "qwen3-5-35b-a3b",
127
+ "name": "Qwen3.5 35B A3B",
99
128
  "reasoning": true,
100
129
  "input": ["text", "image"],
101
130
  "contextWindow": 256000,
102
131
  "maxTokens": 65536,
103
- "cost": { "input": 0.75, "output": 3.5, "cacheRead": 0.16, "cacheWrite": 0 },
132
+ "compat": {
133
+ "supportsUsageInStreaming": false
134
+ }
135
+ },
136
+ {
137
+ "id": "qwen3-next-80b",
138
+ "name": "Qwen3 Next 80B",
139
+ "reasoning": false,
140
+ "input": ["text"],
141
+ "contextWindow": 256000,
142
+ "maxTokens": 16384,
143
+ "compat": {
144
+ "supportsUsageInStreaming": false
145
+ }
146
+ },
147
+ {
148
+ "id": "qwen3-vl-235b-a22b",
149
+ "name": "Qwen3 VL 235B (Vision)",
150
+ "reasoning": false,
151
+ "input": ["text", "image"],
152
+ "contextWindow": 256000,
153
+ "maxTokens": 16384,
154
+ "compat": {
155
+ "supportsUsageInStreaming": false
156
+ }
157
+ },
158
+ {
159
+ "id": "qwen3-4b",
160
+ "name": "Venice Small (Qwen3 4B)",
161
+ "reasoning": true,
162
+ "input": ["text"],
163
+ "contextWindow": 32000,
164
+ "maxTokens": 4096,
104
165
  "compat": {
105
166
  "supportsUsageInStreaming": false
106
167
  }
@@ -112,103 +173,173 @@
112
173
  "input": ["text"],
113
174
  "contextWindow": 160000,
114
175
  "maxTokens": 32768,
115
- "cost": { "input": 0.33, "output": 0.48, "cacheRead": 0.16, "cacheWrite": 0 },
176
+ "compat": {
177
+ "supportsUsageInStreaming": false,
178
+ "supportsTools": false
179
+ }
180
+ },
181
+ {
182
+ "id": "venice-uncensored",
183
+ "name": "Venice Uncensored (Dolphin-Mistral)",
184
+ "reasoning": false,
185
+ "input": ["text"],
186
+ "contextWindow": 32000,
187
+ "maxTokens": 4096,
188
+ "compat": {
189
+ "supportsUsageInStreaming": false,
190
+ "supportsTools": false
191
+ }
192
+ },
193
+ {
194
+ "id": "mistral-31-24b",
195
+ "name": "Venice Medium (Mistral)",
196
+ "reasoning": false,
197
+ "input": ["text", "image"],
198
+ "contextWindow": 128000,
199
+ "maxTokens": 4096,
116
200
  "compat": {
117
201
  "supportsUsageInStreaming": false
118
202
  }
119
203
  },
120
204
  {
121
- "id": "qwen3-235b-a22b-thinking-2507",
122
- "name": "Qwen3 235B Thinking",
123
- "reasoning": true,
205
+ "id": "google-gemma-3-27b-it",
206
+ "name": "Google Gemma 3 27B Instruct",
207
+ "reasoning": false,
208
+ "input": ["text", "image"],
209
+ "contextWindow": 198000,
210
+ "maxTokens": 16384,
211
+ "compat": {
212
+ "supportsUsageInStreaming": false
213
+ }
214
+ },
215
+ {
216
+ "id": "openai-gpt-oss-120b",
217
+ "name": "OpenAI GPT OSS 120B",
218
+ "reasoning": false,
124
219
  "input": ["text"],
125
220
  "contextWindow": 128000,
126
221
  "maxTokens": 16384,
127
- "cost": { "input": 0.45, "output": 3.5, "cacheRead": 0, "cacheWrite": 0 },
128
222
  "compat": {
129
223
  "supportsUsageInStreaming": false
130
224
  }
131
225
  },
132
226
  {
133
- "id": "qwen3-coder-480b-a35b-instruct-turbo",
134
- "name": "Qwen3 Coder 480B Turbo",
227
+ "id": "nvidia-nemotron-3-nano-30b-a3b",
228
+ "name": "NVIDIA Nemotron 3 Nano 30B",
135
229
  "reasoning": false,
136
230
  "input": ["text"],
137
- "contextWindow": 256000,
138
- "maxTokens": 65536,
139
- "cost": { "input": 0.35, "output": 1.5, "cacheRead": 0.04, "cacheWrite": 0 },
231
+ "contextWindow": 128000,
232
+ "maxTokens": 16384,
140
233
  "compat": {
141
234
  "supportsUsageInStreaming": false
142
235
  }
143
236
  },
144
237
  {
145
- "id": "qwen3-vl-235b-a22b",
146
- "name": "Qwen3 VL 235B (Vision)",
238
+ "id": "olafangensan-glm-4.7-flash-heretic",
239
+ "name": "GLM 4.7 Flash Heretic",
240
+ "reasoning": true,
241
+ "input": ["text"],
242
+ "contextWindow": 128000,
243
+ "maxTokens": 24000,
244
+ "compat": {
245
+ "supportsUsageInStreaming": false
246
+ }
247
+ },
248
+ {
249
+ "id": "zai-org-glm-4.6",
250
+ "name": "GLM 4.6",
147
251
  "reasoning": false,
148
- "input": ["text", "image"],
252
+ "input": ["text"],
253
+ "contextWindow": 198000,
254
+ "maxTokens": 16384,
255
+ "compat": {
256
+ "supportsUsageInStreaming": false
257
+ }
258
+ },
259
+ {
260
+ "id": "zai-org-glm-4.7",
261
+ "name": "GLM 4.7",
262
+ "reasoning": true,
263
+ "input": ["text"],
264
+ "contextWindow": 198000,
265
+ "maxTokens": 16384,
266
+ "compat": {
267
+ "supportsUsageInStreaming": false
268
+ }
269
+ },
270
+ {
271
+ "id": "zai-org-glm-4.7-flash",
272
+ "name": "GLM 4.7 Flash",
273
+ "reasoning": true,
274
+ "input": ["text"],
149
275
  "contextWindow": 128000,
150
276
  "maxTokens": 16384,
151
- "cost": { "input": 0.21, "output": 1.9, "cacheRead": 0.1, "cacheWrite": 0 },
152
277
  "compat": {
153
278
  "supportsUsageInStreaming": false
154
279
  }
155
280
  },
156
281
  {
157
- "id": "grok-4-5",
158
- "name": "Grok 4.5",
282
+ "id": "zai-org-glm-5",
283
+ "name": "GLM 5",
159
284
  "reasoning": true,
160
- "input": ["text", "image"],
161
- "contextWindow": 500000,
285
+ "input": ["text"],
286
+ "contextWindow": 198000,
162
287
  "maxTokens": 32000,
163
- "cost": { "input": 2.27, "output": 6.8, "cacheRead": 0.34, "cacheWrite": 0 },
164
288
  "compat": {
165
289
  "supportsUsageInStreaming": false
166
290
  }
167
291
  },
168
292
  {
169
- "id": "qwen-3-7-max",
170
- "name": "Qwen 3.7 Max (via Venice)",
293
+ "id": "kimi-k2-5",
294
+ "name": "Kimi K2.5",
171
295
  "reasoning": true,
172
296
  "input": ["text", "image"],
173
- "contextWindow": 1000000,
297
+ "contextWindow": 256000,
174
298
  "maxTokens": 65536,
175
- "cost": { "input": 2.7, "output": 8.05, "cacheRead": 0.27, "cacheWrite": 3.35 },
176
299
  "compat": {
177
300
  "supportsUsageInStreaming": false
178
301
  }
179
302
  },
180
303
  {
181
- "id": "qwen-3-7-plus",
182
- "name": "Qwen 3.7 Plus (via Venice)",
304
+ "id": "kimi-k2-thinking",
305
+ "name": "Kimi K2 Thinking",
183
306
  "reasoning": true,
184
- "input": ["text", "image"],
185
- "contextWindow": 1000000,
307
+ "input": ["text"],
308
+ "contextWindow": 256000,
186
309
  "maxTokens": 65536,
187
- "cost": { "input": 0.5, "output": 2, "cacheRead": 0.05, "cacheWrite": 0.625 },
188
310
  "compat": {
189
311
  "supportsUsageInStreaming": false
190
312
  }
191
313
  },
192
314
  {
193
- "id": "claude-fable-5",
194
- "name": "Claude Fable 5 (via Venice)",
315
+ "id": "minimax-m21",
316
+ "name": "MiniMax M2.1",
195
317
  "reasoning": true,
196
- "input": ["text", "image"],
197
- "contextWindow": 1000000,
198
- "maxTokens": 128000,
199
- "cost": { "input": 12, "output": 60, "cacheRead": 1.2, "cacheWrite": 15 },
318
+ "input": ["text"],
319
+ "contextWindow": 198000,
320
+ "maxTokens": 32768,
200
321
  "compat": {
201
322
  "supportsUsageInStreaming": false
202
323
  }
203
324
  },
204
325
  {
205
- "id": "claude-opus-5",
206
- "name": "Claude Opus 5 (via Venice)",
326
+ "id": "minimax-m25",
327
+ "name": "MiniMax M2.5",
328
+ "reasoning": true,
329
+ "input": ["text"],
330
+ "contextWindow": 198000,
331
+ "maxTokens": 32768,
332
+ "compat": {
333
+ "supportsUsageInStreaming": false
334
+ }
335
+ },
336
+ {
337
+ "id": "claude-opus-4-6",
338
+ "name": "Claude Opus 4.6 (via Venice)",
207
339
  "reasoning": true,
208
340
  "input": ["text", "image"],
209
341
  "contextWindow": 1000000,
210
342
  "maxTokens": 128000,
211
- "cost": { "input": 6, "output": 30, "cacheRead": 0.6, "cacheWrite": 7.5 },
212
343
  "compat": {
213
344
  "supportsUsageInStreaming": false
214
345
  }
@@ -220,66 +351,116 @@
220
351
  "input": ["text", "image"],
221
352
  "contextWindow": 1000000,
222
353
  "maxTokens": 64000,
223
- "cost": { "input": 3.6, "output": 18, "cacheRead": 0.36, "cacheWrite": 4.5 },
224
354
  "compat": {
225
355
  "supportsUsageInStreaming": false
226
356
  }
227
357
  },
228
358
  {
229
- "id": "openai-gpt-56-sol",
230
- "name": "GPT-5.6 Sol (via Venice)",
359
+ "id": "openai-gpt-52",
360
+ "name": "GPT-5.2 (via Venice)",
361
+ "reasoning": true,
362
+ "input": ["text"],
363
+ "contextWindow": 256000,
364
+ "maxTokens": 65536,
365
+ "compat": {
366
+ "supportsUsageInStreaming": false
367
+ }
368
+ },
369
+ {
370
+ "id": "openai-gpt-52-codex",
371
+ "name": "GPT-5.2 Codex (via Venice)",
231
372
  "reasoning": true,
232
373
  "input": ["text", "image"],
233
- "contextWindow": 1000000,
374
+ "contextWindow": 256000,
375
+ "maxTokens": 65536,
376
+ "compat": {
377
+ "supportsUsageInStreaming": false
378
+ }
379
+ },
380
+ {
381
+ "id": "openai-gpt-53-codex",
382
+ "name": "GPT-5.3 Codex (via Venice)",
383
+ "reasoning": true,
384
+ "input": ["text", "image"],
385
+ "contextWindow": 400000,
234
386
  "maxTokens": 128000,
235
- "cost": {
236
- "input": 6.25,
237
- "output": 37.5,
238
- "cacheRead": 0.625,
239
- "cacheWrite": 7.8125
240
- },
241
387
  "compat": {
242
388
  "supportsUsageInStreaming": false
243
389
  }
244
390
  },
245
391
  {
246
- "id": "zai-org-glm-4.6",
247
- "name": "GLM 4.6",
248
- "status": "deprecated",
249
- "replacedBy": "zai-org-glm-4.7",
392
+ "id": "openai-gpt-54",
393
+ "name": "GPT-5.4 (via Venice)",
250
394
  "reasoning": true,
251
- "input": ["text"],
252
- "contextWindow": 198000,
395
+ "input": ["text", "image"],
396
+ "contextWindow": 1000000,
397
+ "maxTokens": 131072,
398
+ "compat": {
399
+ "supportsUsageInStreaming": false
400
+ }
401
+ },
402
+ {
403
+ "id": "openai-gpt-4o-2024-11-20",
404
+ "name": "GPT-4o (via Venice)",
405
+ "reasoning": false,
406
+ "input": ["text", "image"],
407
+ "contextWindow": 128000,
253
408
  "maxTokens": 16384,
254
- "cost": { "input": 0.43, "output": 1.75, "cacheRead": 0.08, "cacheWrite": 0 },
255
409
  "compat": {
256
410
  "supportsUsageInStreaming": false
257
411
  }
258
412
  },
259
413
  {
260
- "id": "google-gemma-3-27b-it",
261
- "name": "Google Gemma 3 27B Instruct",
262
- "status": "deprecated",
263
- "replacedBy": "google-gemma-4-31b-it",
414
+ "id": "openai-gpt-4o-mini-2024-07-18",
415
+ "name": "GPT-4o Mini (via Venice)",
264
416
  "reasoning": false,
265
417
  "input": ["text", "image"],
266
- "contextWindow": 198000,
418
+ "contextWindow": 128000,
267
419
  "maxTokens": 16384,
268
- "cost": { "input": 0.12, "output": 0.2, "cacheRead": 0, "cacheWrite": 0 },
269
420
  "compat": {
270
421
  "supportsUsageInStreaming": false
271
422
  }
272
423
  },
273
424
  {
274
- "id": "kimi-k2-5",
275
- "name": "Kimi K2.5",
276
- "status": "deprecated",
277
- "replacedBy": "kimi-k2-6",
425
+ "id": "gemini-3-pro-preview",
426
+ "name": "Gemini 3 Pro (via Venice)",
427
+ "reasoning": true,
428
+ "input": ["text", "image"],
429
+ "contextWindow": 198000,
430
+ "maxTokens": 32768,
431
+ "compat": {
432
+ "supportsUsageInStreaming": false
433
+ }
434
+ },
435
+ {
436
+ "id": "gemini-3-1-pro-preview",
437
+ "name": "Gemini 3.1 Pro (via Venice)",
438
+ "reasoning": true,
439
+ "input": ["text", "image"],
440
+ "contextWindow": 1000000,
441
+ "maxTokens": 32768,
442
+ "compat": {
443
+ "supportsUsageInStreaming": false
444
+ }
445
+ },
446
+ {
447
+ "id": "gemini-3-flash-preview",
448
+ "name": "Gemini 3 Flash (via Venice)",
278
449
  "reasoning": true,
279
450
  "input": ["text", "image"],
280
451
  "contextWindow": 256000,
281
452
  "maxTokens": 65536,
282
- "cost": { "input": 0.56, "output": 3.5, "cacheRead": 0.22, "cacheWrite": 0 },
453
+ "compat": {
454
+ "supportsUsageInStreaming": false
455
+ }
456
+ },
457
+ {
458
+ "id": "grok-41-fast",
459
+ "name": "Grok 4.1 Fast (via Venice)",
460
+ "reasoning": true,
461
+ "input": ["text", "image"],
462
+ "contextWindow": 1000000,
463
+ "maxTokens": 30000,
283
464
  "compat": {
284
465
  "supportsUsageInStreaming": false
285
466
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/venice-provider",
3
- "version": "2026.7.2-beta.5",
3
+ "version": "2026.7.33",
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.5"
17
+ "pluginApi": ">=2026.7.33"
18
18
  },
19
19
  "build": {
20
- "openclawVersion": "2026.7.2-beta.5",
20
+ "openclawVersion": "2026.7.33",
21
21
  "bundledDist": false
22
22
  },
23
23
  "release": {
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.7.2-beta.5"
41
+ "openclaw": ">=2026.7.33"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {