@blockrun/clawrouter 0.12.83 → 0.12.85

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 CHANGED
@@ -233,7 +233,7 @@ Edit existing images with `/img2img`:
233
233
  | openai/gpt-5.2-pro | $21.00 | $168.00 | $0.0945 | 400K | reasoning, tools |
234
234
  | openai/gpt-5.4-pro | $30.00 | $180.00 | $0.1050 | 400K | reasoning, tools |
235
235
 
236
- > **Free tier:** 11 NVIDIA models cost nothing — `/model free` points to nemotron-ultra-253b, or pick any free model directly (e.g., `/model nemotron`, `/model deepseek-free`, `/model devstral`).
236
+ > **Free tier:** 11 models cost nothing — `/model free` points to nemotron-ultra-253b, or pick any free model directly (e.g., `/model nemotron`, `/model deepseek-free`, `/model devstral`).
237
237
  > **Best value:** `gpt-5-nano` and `gemini-2.5-flash-lite` deliver strong results at ~$0.0003/request.
238
238
 
239
239
  ---
@@ -459,7 +459,7 @@ ClawRouter is an open-source (MIT licensed) smart LLM router built for autonomou
459
459
 
460
460
  ### How much can ClawRouter save on LLM costs?
461
461
 
462
- ClawRouter's blended average cost is $2.05 per million tokens compared to $25/M for Claude Opus, representing 92% savings. Actual savings depend on your workload — simple queries are routed to budget models (as low as $0/request with NVIDIA free tier), while complex tasks get premium models.
462
+ ClawRouter's blended average cost is $2.05 per million tokens compared to $25/M for Claude Opus, representing 92% savings. Actual savings depend on your workload — simple queries are routed to free models ($0/request), while complex tasks get premium models.
463
463
 
464
464
  ### How does ClawRouter compare to OpenRouter?
465
465
 
package/dist/cli.js CHANGED
@@ -49744,6 +49744,19 @@ data: [DONE]
49744
49744
  }
49745
49745
  }
49746
49746
  let responseBody = Buffer.concat(bodyParts);
49747
+ if (responseBody.length > 0) {
49748
+ try {
49749
+ const parsed = JSON.parse(responseBody.toString());
49750
+ if (parsed.choices?.[0]?.message?.content) {
49751
+ const stripped = stripThinkingTokens(parsed.choices[0].message.content);
49752
+ if (stripped !== parsed.choices[0].message.content) {
49753
+ parsed.choices[0].message.content = stripped;
49754
+ responseBody = Buffer.from(JSON.stringify(parsed));
49755
+ }
49756
+ }
49757
+ } catch {
49758
+ }
49759
+ }
49747
49760
  if (balanceFallbackNotice && responseBody.length > 0) {
49748
49761
  try {
49749
49762
  const parsed = JSON.parse(responseBody.toString());