dsh-zen-free 1.0.0 → 1.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.
Files changed (2) hide show
  1. package/lib/index.js +8 -0
  2. 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) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-zen-free",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "OpenCode Zen 免费池供应商:往 DSH 注册 opencode-zen 路由与 ds4.1f / glm5.3f 两个免费模型,无需 API Key,请求强制直连(不走任何代理)。",
5
5
  "license": "MIT",
6
6
  "type": "module",