dsh-any-deepseek 0.0.39 → 0.0.40
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/lib/index.js +22 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1858,6 +1858,28 @@ function classifyFailure(message) {
|
|
|
1858
1858
|
if (message.stopReason === "aborted") return "ABORTED";
|
|
1859
1859
|
const text = `${message.errorMessage ?? ""} ${message.rawStopReason ?? ""}`.toLowerCase();
|
|
1860
1860
|
if (text.includes("401") || text.includes("403") || text.includes("unauthor") || text.includes("invalid api key")) return "AUTH";
|
|
1861
|
+
/**
|
|
1862
|
+
* 🔴 A SUBSCRIPTION cap, checked BEFORE the generic rate-limit test.
|
|
1863
|
+
*
|
|
1864
|
+
* Owner report (2026-11-22), with the live body: OpenCode Go answers
|
|
1865
|
+
* `{"type":"GoUsageLimitError","message":"OpenCode Go usage limit reached (weekly, resets in 1d 8h)…"}`
|
|
1866
|
+
* with HTTP 429. It reads like a rate limit (429 + 「limit」), so it used to classify as
|
|
1867
|
+
* `RATE_LIMIT` — and that is the one code this route asks the harness to retry 100 times. The
|
|
1868
|
+
* result was visible in the owner's screenshot: 「正在重试模型请求 (9/100) · 重试延迟 9329 毫秒」,
|
|
1869
|
+
* grinding through a quota that will not come back for a day and eight hours.
|
|
1870
|
+
*
|
|
1871
|
+
* Owner's ruling: 「这种视为没有余额 无法重试恢复的」 ⇒ it is `QUOTA`, not `RATE_LIMIT`. That single
|
|
1872
|
+
* reclassification fixes four things at once, which is why it is worth being precise about:
|
|
1873
|
+
* · the retry layer stops retrying it (`QUOTA` is not in `retryableCodes`);
|
|
1874
|
+
* · the supply group fails over to the next member (decision 95's switch set);
|
|
1875
|
+
* · the group SKIPS this member for 30 minutes (decision 100's cooldown);
|
|
1876
|
+
* · the balance row reads it as 「余额不足(实测被拒)」 instead of a transient blip.
|
|
1877
|
+
*
|
|
1878
|
+
* ⚠️ Positive keyword only, never "contains 429": an ordinary burst rate limit is also 429 and IS
|
|
1879
|
+
* worth retrying. `usage limit` / `usagelimit` name a spent allowance, which is what makes this
|
|
1880
|
+
* unrecoverable-by-waiting-in-seconds.
|
|
1881
|
+
*/
|
|
1882
|
+
if (text.includes("usagelimit") || text.includes("usage limit")) return "QUOTA";
|
|
1861
1883
|
if (text.includes("rate") && text.includes("limit")) return "RATE_LIMIT";
|
|
1862
1884
|
if (text.includes("quota") || text.includes("balance") || text.includes("credit")) return "QUOTA";
|
|
1863
1885
|
if (isContextWindowExceededError(text)) return "CONTEXT_WINDOW_EXCEEDED";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-any-deepseek",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"description": "One DeepSeek V4.1 Flash provider for DeepSeek Harness: paste a key per channel, switch channels manually, token usage booked per real upstream.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|