@blockrun/clawrouter 0.8.24 → 0.8.26
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/cli.js +13 -65
- package/dist/cli.js.map +1 -1
- package/dist/index.js +26 -65
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25,8 +25,7 @@ var MODEL_ALIASES = {
|
|
|
25
25
|
"grok-code": "xai/grok-code-fast-1",
|
|
26
26
|
// NVIDIA
|
|
27
27
|
nvidia: "nvidia/gpt-oss-120b",
|
|
28
|
-
"gpt-120b": "nvidia/gpt-oss-120b"
|
|
29
|
-
"gpt-20b": "nvidia/gpt-oss-20b"
|
|
28
|
+
"gpt-120b": "nvidia/gpt-oss-120b"
|
|
30
29
|
// Note: auto, free, eco, premium are virtual routing profiles registered in BLOCKRUN_MODELS
|
|
31
30
|
// They don't need aliases since they're already top-level model IDs
|
|
32
31
|
};
|
|
@@ -131,14 +130,7 @@ var BLOCKRUN_MODELS = [
|
|
|
131
130
|
contextWindow: 128e3,
|
|
132
131
|
maxOutput: 16384
|
|
133
132
|
},
|
|
134
|
-
|
|
135
|
-
id: "openai/gpt-4.1-nano",
|
|
136
|
-
name: "GPT-4.1 Nano",
|
|
137
|
-
inputPrice: 0.1,
|
|
138
|
-
outputPrice: 0.4,
|
|
139
|
-
contextWindow: 128e3,
|
|
140
|
-
maxOutput: 16384
|
|
141
|
-
},
|
|
133
|
+
// gpt-4.1-nano removed - replaced by gpt-5-nano
|
|
142
134
|
{
|
|
143
135
|
id: "openai/gpt-4o",
|
|
144
136
|
name: "GPT-4o",
|
|
@@ -157,25 +149,7 @@ var BLOCKRUN_MODELS = [
|
|
|
157
149
|
contextWindow: 128e3,
|
|
158
150
|
maxOutput: 16384
|
|
159
151
|
},
|
|
160
|
-
// OpenAI O-series (Reasoning)
|
|
161
|
-
{
|
|
162
|
-
id: "openai/o1",
|
|
163
|
-
name: "o1",
|
|
164
|
-
inputPrice: 15,
|
|
165
|
-
outputPrice: 60,
|
|
166
|
-
contextWindow: 2e5,
|
|
167
|
-
maxOutput: 1e5,
|
|
168
|
-
reasoning: true
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: "openai/o1-mini",
|
|
172
|
-
name: "o1-mini",
|
|
173
|
-
inputPrice: 1.1,
|
|
174
|
-
outputPrice: 4.4,
|
|
175
|
-
contextWindow: 128e3,
|
|
176
|
-
maxOutput: 65536,
|
|
177
|
-
reasoning: true
|
|
178
|
-
},
|
|
152
|
+
// OpenAI O-series (Reasoning) - o1/o1-mini removed, replaced by o3/o4
|
|
179
153
|
{
|
|
180
154
|
id: "openai/o3",
|
|
181
155
|
name: "o3",
|
|
@@ -312,15 +286,7 @@ var BLOCKRUN_MODELS = [
|
|
|
312
286
|
maxOutput: 16384,
|
|
313
287
|
reasoning: true
|
|
314
288
|
},
|
|
315
|
-
|
|
316
|
-
id: "xai/grok-3-fast",
|
|
317
|
-
name: "Grok 3 Fast",
|
|
318
|
-
inputPrice: 5,
|
|
319
|
-
outputPrice: 25,
|
|
320
|
-
contextWindow: 131072,
|
|
321
|
-
maxOutput: 16384,
|
|
322
|
-
reasoning: true
|
|
323
|
-
},
|
|
289
|
+
// grok-3-fast removed - too expensive ($5/$25), use grok-4-fast instead
|
|
324
290
|
{
|
|
325
291
|
id: "xai/grok-3-mini",
|
|
326
292
|
name: "Grok 3 Mini",
|
|
@@ -383,15 +349,7 @@ var BLOCKRUN_MODELS = [
|
|
|
383
349
|
maxOutput: 16384,
|
|
384
350
|
reasoning: true
|
|
385
351
|
},
|
|
386
|
-
|
|
387
|
-
id: "xai/grok-2-vision",
|
|
388
|
-
name: "Grok 2 Vision",
|
|
389
|
-
inputPrice: 2,
|
|
390
|
-
outputPrice: 10,
|
|
391
|
-
contextWindow: 131072,
|
|
392
|
-
maxOutput: 16384,
|
|
393
|
-
vision: true
|
|
394
|
-
},
|
|
352
|
+
// grok-2-vision removed - old, 0 transactions
|
|
395
353
|
// NVIDIA - Free/cheap models
|
|
396
354
|
{
|
|
397
355
|
id: "nvidia/gpt-oss-120b",
|
|
@@ -401,19 +359,11 @@ var BLOCKRUN_MODELS = [
|
|
|
401
359
|
contextWindow: 128e3,
|
|
402
360
|
maxOutput: 16384
|
|
403
361
|
},
|
|
404
|
-
{
|
|
405
|
-
id: "nvidia/gpt-oss-20b",
|
|
406
|
-
name: "NVIDIA GPT-OSS 20B",
|
|
407
|
-
inputPrice: 0,
|
|
408
|
-
outputPrice: 0,
|
|
409
|
-
contextWindow: 128e3,
|
|
410
|
-
maxOutput: 16384
|
|
411
|
-
},
|
|
412
362
|
{
|
|
413
363
|
id: "nvidia/kimi-k2.5",
|
|
414
364
|
name: "NVIDIA Kimi K2.5",
|
|
415
|
-
inputPrice:
|
|
416
|
-
outputPrice:
|
|
365
|
+
inputPrice: 0.55,
|
|
366
|
+
outputPrice: 2.5,
|
|
417
367
|
contextWindow: 262144,
|
|
418
368
|
maxOutput: 16384
|
|
419
369
|
}
|
|
@@ -1621,14 +1571,12 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1621
1571
|
tiers: {
|
|
1622
1572
|
SIMPLE: {
|
|
1623
1573
|
primary: "nvidia/kimi-k2.5",
|
|
1624
|
-
//
|
|
1574
|
+
// $0.55/$2.5 - best quality/price for simple tasks
|
|
1625
1575
|
fallback: [
|
|
1626
|
-
"google/gemini-2.5-flash",
|
|
1627
1576
|
"nvidia/gpt-oss-120b",
|
|
1628
|
-
|
|
1629
|
-
"
|
|
1630
|
-
"
|
|
1631
|
-
// Added for better quality fallback
|
|
1577
|
+
// FREE fallback
|
|
1578
|
+
"google/gemini-2.5-flash",
|
|
1579
|
+
"deepseek/deepseek-chat"
|
|
1632
1580
|
]
|
|
1633
1581
|
},
|
|
1634
1582
|
MEDIUM: {
|
|
@@ -1669,8 +1617,8 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1669
1617
|
ecoTiers: {
|
|
1670
1618
|
SIMPLE: {
|
|
1671
1619
|
primary: "nvidia/kimi-k2.5",
|
|
1672
|
-
// $0.
|
|
1673
|
-
fallback: ["
|
|
1620
|
+
// $0.55/$2.5
|
|
1621
|
+
fallback: ["nvidia/gpt-oss-120b", "deepseek/deepseek-chat", "google/gemini-2.5-flash"]
|
|
1674
1622
|
},
|
|
1675
1623
|
MEDIUM: {
|
|
1676
1624
|
primary: "deepseek/deepseek-chat",
|
|
@@ -3968,11 +3916,24 @@ function injectModelsConfig(logger) {
|
|
|
3968
3916
|
{ id: "gemini", alias: "gemini" },
|
|
3969
3917
|
{ id: "flash", alias: "flash" }
|
|
3970
3918
|
];
|
|
3919
|
+
const DEPRECATED_ALIASES = [
|
|
3920
|
+
"blockrun/nvidia",
|
|
3921
|
+
"blockrun/gpt",
|
|
3922
|
+
"blockrun/o3",
|
|
3923
|
+
"blockrun/grok"
|
|
3924
|
+
];
|
|
3971
3925
|
if (!defaults.models) {
|
|
3972
3926
|
defaults.models = {};
|
|
3973
3927
|
needsWrite = true;
|
|
3974
3928
|
}
|
|
3975
3929
|
const allowlist = defaults.models;
|
|
3930
|
+
for (const deprecated of DEPRECATED_ALIASES) {
|
|
3931
|
+
if (allowlist[deprecated]) {
|
|
3932
|
+
delete allowlist[deprecated];
|
|
3933
|
+
logger.info(`Removed deprecated model alias: ${deprecated}`);
|
|
3934
|
+
needsWrite = true;
|
|
3935
|
+
}
|
|
3936
|
+
}
|
|
3976
3937
|
for (const m of KEY_MODEL_ALIASES) {
|
|
3977
3938
|
const fullId = `blockrun/${m.id}`;
|
|
3978
3939
|
if (!allowlist[fullId]) {
|