@blockrun/clawrouter 0.12.74 → 0.12.76
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/index.d.ts
CHANGED
|
@@ -835,7 +835,7 @@ declare const blockrunProvider: ProviderPlugin;
|
|
|
835
835
|
/**
|
|
836
836
|
* BlockRun Model Definitions for OpenClaw
|
|
837
837
|
*
|
|
838
|
-
* Maps BlockRun's
|
|
838
|
+
* Maps BlockRun's 55+ AI models to OpenClaw's ModelDefinitionConfig format.
|
|
839
839
|
* All models use the "openai-completions" API since BlockRun is OpenAI-compatible.
|
|
840
840
|
*
|
|
841
841
|
* Pricing is in USD per 1M tokens. Operators pay these rates via x402;
|
|
@@ -1366,7 +1366,7 @@ declare function buildPartnerTools(proxyBaseUrl: string): PartnerToolDefinition[
|
|
|
1366
1366
|
/**
|
|
1367
1367
|
* @blockrun/clawrouter
|
|
1368
1368
|
*
|
|
1369
|
-
* Smart LLM router for OpenClaw —
|
|
1369
|
+
* Smart LLM router for OpenClaw — 55+ models, x402 micropayments, 78% cost savings.
|
|
1370
1370
|
* Routes each request to the cheapest model that can handle it.
|
|
1371
1371
|
*
|
|
1372
1372
|
* Usage:
|
package/dist/index.js
CHANGED
|
@@ -50987,9 +50987,7 @@ function installSkillsToWorkspace(logger) {
|
|
|
50987
50987
|
logger.info(`Installed ${installed} skill(s) to ${workspaceSkillsDir}`);
|
|
50988
50988
|
}
|
|
50989
50989
|
} catch (err) {
|
|
50990
|
-
logger.warn(
|
|
50991
|
-
`Failed to install skills: ${err instanceof Error ? err.message : String(err)}`
|
|
50992
|
-
);
|
|
50990
|
+
logger.warn(`Failed to install skills: ${err instanceof Error ? err.message : String(err)}`);
|
|
50993
50991
|
}
|
|
50994
50992
|
}
|
|
50995
50993
|
function isCompletionMode() {
|
|
@@ -51670,7 +51668,7 @@ Run \`openclaw plugins install @blockrun/clawrouter\` to generate a wallet.`,
|
|
|
51670
51668
|
var plugin = {
|
|
51671
51669
|
id: "clawrouter",
|
|
51672
51670
|
name: "ClawRouter",
|
|
51673
|
-
description: "Smart LLM router \u2014
|
|
51671
|
+
description: "Smart LLM router \u2014 55+ models, x402 micropayments, 78% cost savings",
|
|
51674
51672
|
version: VERSION,
|
|
51675
51673
|
register(api) {
|
|
51676
51674
|
const isDisabled = process["env"].CLAWROUTER_DISABLED === "true" || process["env"].CLAWROUTER_DISABLED === "1";
|
|
@@ -51700,7 +51698,7 @@ var plugin = {
|
|
|
51700
51698
|
apiKey: "x402-proxy-handles-auth",
|
|
51701
51699
|
models: OPENCLAW_MODELS
|
|
51702
51700
|
};
|
|
51703
|
-
api.logger.info("BlockRun provider registered (
|
|
51701
|
+
api.logger.info("BlockRun provider registered (55+ models via x402)");
|
|
51704
51702
|
try {
|
|
51705
51703
|
const proxyBaseUrl = `http://127.0.0.1:${runtimePort}`;
|
|
51706
51704
|
const partnerTools = buildPartnerTools(proxyBaseUrl);
|