jiay98528-dev/dsh-plugin-weaknet-adaptor

jiay98528-dev★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

README excerpt

🌐 dsh-plugin-weaknet-adaptor Weak-network adaptor for the DeepSeek Harness — 弱网适配插件 Keep model reply chains alive on flaky networks: transparent long-backoff retries, local response cache, heartbeat auto-reconnect, and degraded-mode token economy — with a fully structured, bilingual (zh/en) settings page. 弱网下保护模型回复链条不断裂:透明长退避重试、本地响应缓存、心跳自动重连、降级省 token——全部参数结构化,设置页中英双语。 ✨ Features / 特性 中文 English 🔁 模型流在 llm/stream 瀑布层透明拦截:降级模式下全缓冲 + 指数退避重试(默认最长等待 10 分钟),网络抖动不再打断回复链条 Transparent interception in the llm/stream waterfall: degraded mode buffers and retries with exponential backoff (up to a 10-minute cap by default), so network blips no longer break the reply chain 💾 完整成功响应本地缓存(请求指纹 key、LRU、TTL 可配):相同请求零 token 本地重放 Local replay cache for fully successful responses (fingerprint keys, LRU, configurable TTL): identical requests replay with zero tokens ❤️ 断网后本地心跳任务按指数退避自动探测重连(间隔上限默认 10 分钟);任意模型流成功也立即被动恢复 After an outage a local heartbeat task probes and auto-reconnects with exponential backoff (cap: 10 minutes by default); any successful model stream passively restores online state 🪙 重试等待期间零模型调用(零 token);重连后可选输出上限降级与 tool-result 确定性裁剪 Zero model calls (zero tokens) while waiting; optiona…

View full README on GitHub →
Tools / Devdsh-plugin

Category