@blockrun/clawrouter 0.12.44 → 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 +10 -16
- package/dist/cli.js.map +1 -1
- package/dist/index.js +10 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/benchmark.py +300 -0
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"
|
|
@@ -6987,17 +6989,9 @@ async function proxyRequest(req, res, apiBase, payFetch, options, routerOpts, de
|
|
|
6987
6989
|
hasTools
|
|
6988
6990
|
});
|
|
6989
6991
|
if (hasTools && routingDecision.tier === "SIMPLE") {
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
hasTools: false
|
|
6994
|
-
});
|
|
6995
|
-
if (simpleRoutingDecision.tier === "SIMPLE") {
|
|
6996
|
-
console.log(
|
|
6997
|
-
`[ClawRouter] SIMPLE+tools: using non-agentic model ${simpleRoutingDecision.model} (tools present but query is trivial)`
|
|
6998
|
-
);
|
|
6999
|
-
routingDecision = simpleRoutingDecision;
|
|
7000
|
-
}
|
|
6992
|
+
console.log(
|
|
6993
|
+
`[ClawRouter] SIMPLE+tools: keeping agentic model ${routingDecision.model} (tools need reliable function-call support)`
|
|
6994
|
+
);
|
|
7001
6995
|
}
|
|
7002
6996
|
if (existingSession) {
|
|
7003
6997
|
const tierRank = {
|
|
@@ -7314,7 +7308,7 @@ async function proxyRequest(req, res, apiBase, payFetch, options, routerOpts, de
|
|
|
7314
7308
|
} else {
|
|
7315
7309
|
modelsToTry = modelId ? [modelId] : [];
|
|
7316
7310
|
}
|
|
7317
|
-
if (!modelsToTry.includes(FREE_MODEL)) {
|
|
7311
|
+
if (!hasTools && !modelsToTry.includes(FREE_MODEL)) {
|
|
7318
7312
|
modelsToTry.push(FREE_MODEL);
|
|
7319
7313
|
}
|
|
7320
7314
|
let upstream;
|