dsh-zen-free 1.0.1 → 1.0.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 +8 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -614,6 +614,14 @@ const adapter = {
|
|
|
614
614
|
providerInfo(provider) {
|
|
615
615
|
return { id: provider, name: PROVIDER_NAME };
|
|
616
616
|
},
|
|
617
|
+
/**
|
|
618
|
+
* harness 在 prepareRoutes 里以「方法」方式调用本钩子,返回 undefined 表示
|
|
619
|
+
* 沿用上游默认策略(normal / 5 次 / 500ms→10s 退避,429 与超时都在重试集里)。
|
|
620
|
+
* 免费池的 429 是上游按出口 IP 限流,重试交给 dsh-llm-retry 比自带退避更合适。
|
|
621
|
+
*/
|
|
622
|
+
providerRetryPolicy() {
|
|
623
|
+
return undefined;
|
|
624
|
+
},
|
|
617
625
|
listModels(provider) {
|
|
618
626
|
return Promise.resolve(
|
|
619
627
|
MODELS.map((entry) => ({
|