@blockrun/clawrouter 0.12.21 → 0.12.22
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/cli.js +10 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5635,8 +5635,12 @@ async function startProxy(options) {
|
|
|
5635
5635
|
const paymentChain = options.paymentChain ?? await resolvePaymentChain();
|
|
5636
5636
|
const apiBase = options.apiBase ?? (paymentChain === "solana" && solanaPrivateKeyBytes ? BLOCKRUN_SOLANA_API : BLOCKRUN_API);
|
|
5637
5637
|
if (paymentChain === "solana" && !solanaPrivateKeyBytes) {
|
|
5638
|
-
console.warn(
|
|
5639
|
-
|
|
5638
|
+
console.warn(
|
|
5639
|
+
`[ClawRouter] \u26A0 Payment chain is Solana but no mnemonic found \u2014 falling back to Base (EVM).`
|
|
5640
|
+
);
|
|
5641
|
+
console.warn(
|
|
5642
|
+
`[ClawRouter] To fix: run "npx @blockrun/clawrouter wallet recover" if your mnemonic exists,`
|
|
5643
|
+
);
|
|
5640
5644
|
console.warn(`[ClawRouter] or run "npx @blockrun/clawrouter chain base" to switch to EVM.`);
|
|
5641
5645
|
} else if (paymentChain === "solana") {
|
|
5642
5646
|
console.log(`[ClawRouter] Payment chain: Solana (${BLOCKRUN_SOLANA_API})`);
|
|
@@ -6042,7 +6046,10 @@ async function tryModelRequest(upstreamUrl, method, headers, body, modelId, maxT
|
|
|
6042
6046
|
const contentType = response.headers.get("content-type") || "";
|
|
6043
6047
|
if (contentType.includes("json") || contentType.includes("text")) {
|
|
6044
6048
|
try {
|
|
6045
|
-
const clonedChunks = await readBodyWithTimeout(
|
|
6049
|
+
const clonedChunks = await readBodyWithTimeout(
|
|
6050
|
+
response.clone().body,
|
|
6051
|
+
ERROR_BODY_READ_TIMEOUT_MS
|
|
6052
|
+
);
|
|
6046
6053
|
const responseBody = Buffer.concat(clonedChunks).toString();
|
|
6047
6054
|
const degradedReason = detectDegradedSuccessResponse(responseBody);
|
|
6048
6055
|
if (degradedReason) {
|