@blockrun/clawrouter 0.12.43 → 0.12.45
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/README.md +1 -1
- package/dist/cli.js +11 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.js +19 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/benchmark.py +300 -0
- package/scripts/reinstall.sh +1 -1
package/README.md
CHANGED
|
@@ -334,7 +334,7 @@ npm test
|
|
|
334
334
|
| --------------------- | ------------------------------------------------------------------ |
|
|
335
335
|
| 📅 Schedule Demo | [calendly.com/vickyfu9/30min](https://calendly.com/vickyfu9/30min) |
|
|
336
336
|
| 💬 Community Telegram | [t.me/blockrunAI](https://t.me/blockrunAI) |
|
|
337
|
-
| 🐦 X / Twitter | [x.com/
|
|
337
|
+
| 🐦 X / Twitter | [x.com/ClawRou](https://x.com/ClawRou) |
|
|
338
338
|
| 📱 Founder Telegram | [@bc1max](https://t.me/bc1max) |
|
|
339
339
|
| ✉️ Email | vicky@blockrun.ai |
|
|
340
340
|
|
package/dist/cli.js
CHANGED
|
@@ -1789,18 +1789,20 @@ var DEFAULT_ROUTING_CONFIG = {
|
|
|
1789
1789
|
// Agentic tier configs - models that excel at multi-step autonomous tasks
|
|
1790
1790
|
agenticTiers: {
|
|
1791
1791
|
SIMPLE: {
|
|
1792
|
-
primary: "
|
|
1793
|
-
//
|
|
1792
|
+
primary: "openai/gpt-4o-mini",
|
|
1793
|
+
// $0.15/$0.60 - best tool compliance at lowest cost
|
|
1794
1794
|
fallback: [
|
|
1795
|
+
"moonshot/kimi-k2.5",
|
|
1795
1796
|
"anthropic/claude-haiku-4.5",
|
|
1796
|
-
"xai/grok-4-1-fast-non-reasoning"
|
|
1797
|
-
"openai/gpt-4o-mini"
|
|
1797
|
+
"xai/grok-4-1-fast-non-reasoning"
|
|
1798
1798
|
]
|
|
1799
1799
|
},
|
|
1800
1800
|
MEDIUM: {
|
|
1801
1801
|
primary: "moonshot/kimi-k2.5",
|
|
1802
1802
|
// $0.50/$2.40 - strong tool use, handles function calls correctly
|
|
1803
1803
|
fallback: [
|
|
1804
|
+
"openai/gpt-4o-mini",
|
|
1805
|
+
// $0.15/$0.60 - reliable tool calling fallback
|
|
1804
1806
|
"anthropic/claude-haiku-4.5",
|
|
1805
1807
|
"deepseek/deepseek-chat",
|
|
1806
1808
|
"xai/grok-4-1-fast-non-reasoning"
|
|
@@ -1881,6 +1883,7 @@ var MODEL_ALIASES = {
|
|
|
1881
1883
|
o3: "openai/o3",
|
|
1882
1884
|
// DeepSeek
|
|
1883
1885
|
deepseek: "deepseek/deepseek-chat",
|
|
1886
|
+
"deepseek-chat": "deepseek/deepseek-chat",
|
|
1884
1887
|
reasoner: "deepseek/deepseek-reasoner",
|
|
1885
1888
|
// Kimi / Moonshot
|
|
1886
1889
|
kimi: "moonshot/kimi-k2.5",
|
|
@@ -6986,17 +6989,9 @@ async function proxyRequest(req, res, apiBase, payFetch, options, routerOpts, de
|
|
|
6986
6989
|
hasTools
|
|
6987
6990
|
});
|
|
6988
6991
|
if (hasTools && routingDecision.tier === "SIMPLE") {
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
hasTools: false
|
|
6993
|
-
});
|
|
6994
|
-
if (simpleRoutingDecision.tier === "SIMPLE") {
|
|
6995
|
-
console.log(
|
|
6996
|
-
`[ClawRouter] SIMPLE+tools: using non-agentic model ${simpleRoutingDecision.model} (tools present but query is trivial)`
|
|
6997
|
-
);
|
|
6998
|
-
routingDecision = simpleRoutingDecision;
|
|
6999
|
-
}
|
|
6992
|
+
console.log(
|
|
6993
|
+
`[ClawRouter] SIMPLE+tools: keeping agentic model ${routingDecision.model} (tools need reliable function-call support)`
|
|
6994
|
+
);
|
|
7000
6995
|
}
|
|
7001
6996
|
if (existingSession) {
|
|
7002
6997
|
const tierRank = {
|
|
@@ -7313,7 +7308,7 @@ async function proxyRequest(req, res, apiBase, payFetch, options, routerOpts, de
|
|
|
7313
7308
|
} else {
|
|
7314
7309
|
modelsToTry = modelId ? [modelId] : [];
|
|
7315
7310
|
}
|
|
7316
|
-
if (!modelsToTry.includes(FREE_MODEL)) {
|
|
7311
|
+
if (!hasTools && !modelsToTry.includes(FREE_MODEL)) {
|
|
7317
7312
|
modelsToTry.push(FREE_MODEL);
|
|
7318
7313
|
}
|
|
7319
7314
|
let upstream;
|