@blockrun/clawrouter 0.11.11 → 0.11.12
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 +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/update.sh +33 -23
package/README.md
CHANGED
|
@@ -139,7 +139,7 @@ Request → Weighted Scorer (15 dimensions) → Tier → Cheapest Model → Resp
|
|
|
139
139
|
| o3 | $2.00 | $8.00 | 200K | \* |
|
|
140
140
|
| o4-mini | $1.10 | $4.40 | 128K | \* |
|
|
141
141
|
| **Anthropic** | | | | |
|
|
142
|
-
| claude-opus-4.
|
|
142
|
+
| claude-opus-4.6 | $5.00 | $25.00 | 200K | \* |
|
|
143
143
|
| claude-sonnet-4.6 | $3.00 | $15.00 | 200K | \* |
|
|
144
144
|
| claude-haiku-4.5 | $1.00 | $5.00 | 200K | |
|
|
145
145
|
| **Google** | | | | |
|
package/dist/cli.js
CHANGED
|
@@ -5621,7 +5621,8 @@ async function proxyRequest(req, res, apiBase, payFetch, options, routerOpts, de
|
|
|
5621
5621
|
};
|
|
5622
5622
|
}
|
|
5623
5623
|
const lastAssistantMsg = [...parsedMessages].reverse().find((m) => m.role === "assistant");
|
|
5624
|
-
const
|
|
5624
|
+
const assistantToolCalls = lastAssistantMsg?.tool_calls;
|
|
5625
|
+
const toolCallNames = Array.isArray(assistantToolCalls) ? assistantToolCalls.map((tc) => tc.function?.name).filter((n) => Boolean(n)) : void 0;
|
|
5625
5626
|
const contentHash = hashRequestContent(prompt, toolCallNames);
|
|
5626
5627
|
const shouldEscalate = sessionStore.recordRequestHash(effectiveSessionId, contentHash);
|
|
5627
5628
|
if (shouldEscalate) {
|