heybash-xdpool 1.0.6 → 1.0.7
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/CHANGELOG.md +7 -0
- package/README.md +3 -1
- package/assets/licenses/dsh-connect-doubao-MIT.txt +21 -0
- package/lib/bin.js +396 -48
- package/lib/client.js +642 -26
- package/lib/index.d.ts +25 -2
- package/lib/index.js +4868 -1914
- package/package.json +1 -1
- package/vendor/channel-pack/pack.js +17 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "heybash-xdpool",
|
|
3
3
|
"displayName": "Heybash",
|
|
4
4
|
"description": "Heybash model pool for DeepSeek Harness: account rotation, provider aggregation, routing chains, usage insights and a local OpenAI-compatible gateway.",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.7",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Heybash",
|
|
8
8
|
"contributors": [
|
|
@@ -33373,12 +33373,27 @@ var CodeArtsAdapter = class extends LlmAdapter {
|
|
|
33373
33373
|
let response;
|
|
33374
33374
|
let queueAttempts = 0;
|
|
33375
33375
|
let authRefreshed = false;
|
|
33376
|
-
let benefitHeaderDropped =
|
|
33376
|
+
let benefitHeaderDropped = true;
|
|
33377
33377
|
const rateLimitTried = /* @__PURE__ */ new Set();
|
|
33378
33378
|
if (currentAccountId) rateLimitTried.add(currentAccountId);
|
|
33379
33379
|
const isBenefitModel = isCodeArtsBenefitModel(options.model);
|
|
33380
33380
|
for (; ; ) {
|
|
33381
|
-
|
|
33381
|
+
/**
|
|
33382
|
+
* [xdpool-local] The benefit header is NEVER sent — issue #150.
|
|
33383
|
+
*
|
|
33384
|
+
* `maas_type: benefit` routes the request onto a lane the upstream has retired: with it
|
|
33385
|
+
* the first frame is `InferHub.APIG.0101.404`, which surfaces as
|
|
33386
|
+
* "The API does not exist or has not been published in the environment". Without it the
|
|
33387
|
+
* SAME model, account, body and endpoint answer normally — measured both ways on
|
|
33388
|
+
* `glm-5.3-flash` and `deepseek-v4.1-flash`.
|
|
33389
|
+
*
|
|
33390
|
+
* #149 read the same failure as "these model ids are no longer published" and proposed
|
|
33391
|
+
* switching them off. Its control group changed the ID rather than the header, and every
|
|
33392
|
+
* id it compared happened to be outside the benefit list — so the variable it meant to
|
|
33393
|
+
* isolate was never isolated, and disabling the ids would have removed two working
|
|
33394
|
+
* models while leaving the real cause in place.
|
|
33395
|
+
*/
|
|
33396
|
+
const extraSignedHeaders = void 0;
|
|
33382
33397
|
const signed = await signRequestHuawei(
|
|
33383
33398
|
credential.access_key_id,
|
|
33384
33399
|
credential.secret_access_key,
|