dsh-xdpool 3.0.0 → 3.0.2
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 +48 -0
- package/README.md +34 -17
- package/assets/account-credits.png +0 -0
- package/assets/account-pool.png +0 -0
- package/assets/aggregate-channels.png +0 -0
- package/assets/automation-panel.png +0 -0
- package/assets/dashboard.png +0 -0
- package/assets/login-channels.png +0 -0
- package/assets/model-picker.png +0 -0
- package/lib/bin.js +9 -1
- package/lib/client.js +346 -30
- package/lib/index.d.ts +30 -0
- package/lib/index.js +517 -157
- package/package.json +1 -1
- package/screenshots.json +2 -1
- package/vendor/channel-pack/pack.js +15 -1
- package/assets/region-tabs.png +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "dsh-xdpool",
|
|
3
3
|
"displayName": "DSH XD Pool",
|
|
4
4
|
"description": "One DSH model pool for every free quota you have: merge all locally signed-in WorkBuddy accounts with auto-failover, sign in to 22 vendors by QR/web, aggregate 77 external vendors' keys, plus a usage dashboard, model routing, a local OpenAI-compatible gateway and a points-automation suite.",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "XDTrees",
|
|
8
8
|
"homepage": "https://github.com/XDTrees/dsh-xdpool#readme",
|
package/screenshots.json
CHANGED
|
@@ -33028,7 +33028,21 @@ function isSseQueueErrorCode(code) {
|
|
|
33028
33028
|
return code === "TM.00001041" || /81111|TPM|(^|[^0-9])429([^0-9]|$)|rate.?limit|too many requests|排队|限流/i.test(code);
|
|
33029
33029
|
}
|
|
33030
33030
|
function isSseQuotaExhaustedErrorCode(code, message2) {
|
|
33031
|
-
|
|
33031
|
+
// [xdpool-local] 额度耗尽也是一种「额度耗尽」—— issue #192.
|
|
33032
|
+
//
|
|
33033
|
+
// 这段只认 `4291` 和英文 `insufficient quota`,而 CodeArts 的积分耗尽长这样:
|
|
33034
|
+
//
|
|
33035
|
+
// HTTP 400 {"error_code":"TM.00001050","error_msg":"您的积分已耗尽,请关注活动积分领取活动或者[升级套餐]"}
|
|
33036
|
+
//
|
|
33037
|
+
// 它一条都不命中,于是 400 被当成普通请求失败:账号不进冷却、轮转继续选它,
|
|
33038
|
+
// 用户看到的是「同一条消息重发几次才成功」,界面只说 Failed to fetch。而这一
|
|
33039
|
+
// 分支下面本来就有完整处理 —— 冷却到次日 UTC+8(updateModelRateLimit)、换下一个
|
|
33040
|
+
// 账号、全池都耗尽才抛 QUOTA_EXCEEDED。缺的只是把码认出来。
|
|
33041
|
+
//
|
|
33042
|
+
// 中文提示一并匹配:CodeArts 的 error_code 有时为空而文案稳定。
|
|
33043
|
+
return code.includes("4291")
|
|
33044
|
+
|| code.includes("TM.00001050")
|
|
33045
|
+
|| /insufficient[\s_-]+quota|\u79ef\u5206\u5df2\u8017\u5c3d|\u79ef\u5206\u4e0d\u8db3/i.test(message2);
|
|
33032
33046
|
}
|
|
33033
33047
|
function errorDetail(body) {
|
|
33034
33048
|
try {
|
package/assets/region-tabs.png
DELETED
|
Binary file
|