@blockrun/clawrouter 0.8.28 → 0.8.29
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 +8 -11
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +8 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2354,16 +2354,6 @@ var FREE_MODEL = "nvidia/gpt-oss-120b";
|
|
|
2354
2354
|
var HEARTBEAT_INTERVAL_MS = 2e3;
|
|
2355
2355
|
var DEFAULT_REQUEST_TIMEOUT_MS = 18e4;
|
|
2356
2356
|
var DEFAULT_PORT = 8402;
|
|
2357
|
-
var PROXY_PORT = (() => {
|
|
2358
|
-
const envPort = process.env.BLOCKRUN_PROXY_PORT;
|
|
2359
|
-
if (envPort) {
|
|
2360
|
-
const parsed = parseInt(envPort, 10);
|
|
2361
|
-
if (!isNaN(parsed) && parsed > 0 && parsed < 65536) {
|
|
2362
|
-
return parsed;
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
return DEFAULT_PORT;
|
|
2366
|
-
})();
|
|
2367
2357
|
var MAX_FALLBACK_ATTEMPTS = 3;
|
|
2368
2358
|
var HEALTH_CHECK_TIMEOUT_MS = 2e3;
|
|
2369
2359
|
var RATE_LIMIT_COOLDOWN_MS = 6e4;
|
|
@@ -2463,7 +2453,14 @@ function safeWrite(res, data) {
|
|
|
2463
2453
|
}
|
|
2464
2454
|
var BALANCE_CHECK_BUFFER = 1.5;
|
|
2465
2455
|
function getProxyPort() {
|
|
2466
|
-
|
|
2456
|
+
const envPort = process.env.BLOCKRUN_PROXY_PORT;
|
|
2457
|
+
if (envPort) {
|
|
2458
|
+
const parsed = parseInt(envPort, 10);
|
|
2459
|
+
if (!isNaN(parsed) && parsed > 0 && parsed < 65536) {
|
|
2460
|
+
return parsed;
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
return DEFAULT_PORT;
|
|
2467
2464
|
}
|
|
2468
2465
|
async function checkExistingProxy(port) {
|
|
2469
2466
|
const controller = new AbortController();
|