@liyang8246/dsh-accounts 0.1.14 → 0.1.16
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 +18 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -29279,6 +29279,21 @@ async function* streamPrepared(ctx, options, account, entry) {
|
|
|
29279
29279
|
}
|
|
29280
29280
|
}
|
|
29281
29281
|
// src/transport/adapter.ts
|
|
29282
|
+
const retryPolicy = Object.freeze({
|
|
29283
|
+
mode: "normal",
|
|
29284
|
+
maxRetries: 8,
|
|
29285
|
+
retryableCodes: Object.freeze([
|
|
29286
|
+
"EMPTY_RESPONSE",
|
|
29287
|
+
"RATE_LIMIT",
|
|
29288
|
+
"SERVER",
|
|
29289
|
+
"TIMEOUT",
|
|
29290
|
+
"TRANSPORT",
|
|
29291
|
+
"PROVIDER_ERROR"
|
|
29292
|
+
]),
|
|
29293
|
+
initialDelayMs: 1e3,
|
|
29294
|
+
maxDelayMs: 1e4,
|
|
29295
|
+
jitterRatio: .2
|
|
29296
|
+
});
|
|
29282
29297
|
function channelOf(provider) {
|
|
29283
29298
|
return channelFor(provider.startsWith("zephyr-") ? provider.slice(7) : provider);
|
|
29284
29299
|
}
|
|
@@ -29319,7 +29334,9 @@ function createTransport(ctx, resolveAccount, modelCatalog, refreshCatalog) {
|
|
|
29319
29334
|
name: channelOf(provider).name
|
|
29320
29335
|
};
|
|
29321
29336
|
},
|
|
29322
|
-
providerRetryPolicy() {
|
|
29337
|
+
providerRetryPolicy() {
|
|
29338
|
+
return retryPolicy;
|
|
29339
|
+
},
|
|
29323
29340
|
imageRequestPricing() {},
|
|
29324
29341
|
imageRequestTarget(_provider, _model, image) {
|
|
29325
29342
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liyang8246/dsh-accounts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.16",
|
|
5
5
|
"description": "Independent multi-account Codex, OpenCode Go and CommandCode Go plugin for DeepSeek Harness.",
|
|
6
6
|
"repository": { "type": "git", "url": "https://github.com/liyang8246/dsh-zolin.git", "directory": "packages/dsh-accounts" },
|
|
7
7
|
"exports": {
|