@mangoc/dsh-sub2api-sync 0.2.2 → 0.2.3
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 +6 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -305,12 +305,13 @@ function buildProviderProfile(input) {
|
|
|
305
305
|
const reasoning = input.template?.reasoningEfforts;
|
|
306
306
|
const override = input.retryPolicy ?? {};
|
|
307
307
|
const retryPolicy = {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
retryableCodes: [...override.retryableCodes
|
|
308
|
+
mode: override.mode ?? SUB2API_RETRY_POLICY.mode,
|
|
309
|
+
maxRetries: override.maxRetries ?? SUB2API_RETRY_POLICY.maxRetries,
|
|
310
|
+
retryableCodes: override.retryableCodes !== undefined && override.retryableCodes.length > 0 ? [...override.retryableCodes] : [...SUB2API_RETRY_POLICY.retryableCodes],
|
|
311
311
|
backoff: {
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
initialDelayMs: override.backoff?.initialDelayMs ?? SUB2API_RETRY_POLICY.backoff.initialDelayMs,
|
|
313
|
+
maxDelayMs: override.backoff?.maxDelayMs ?? SUB2API_RETRY_POLICY.backoff.maxDelayMs,
|
|
314
|
+
jitterRatio: override.backoff?.jitterRatio ?? SUB2API_RETRY_POLICY.backoff.jitterRatio
|
|
314
315
|
}
|
|
315
316
|
};
|
|
316
317
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mangoc/dsh-sub2api-sync",
|
|
3
3
|
"description": "Sync one sub2api instance's groups, keys, and models into dsh-llm-pi-ai provider routes: panel-driven login (password / OAuth), one relay key one provider.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Shuai-S",
|
|
7
7
|
"homepage": "https://github.com/Shuai-S/dsh-sub2api-sync#readme",
|