force-push/dsh-llm-fallback0

dsh-llm-fallback

面向 DeepSeek Harness 的跨提供商模型自动容灾降级(自愈)插件。

AI 分析

核心用途是在主模型接口报错、超时或限流时,自动无缝切换到备用模型。适合对服务稳定性要求极高、需要配置多重容灾通道的自动化任务或用户。

套件
dsh-llm-fallback
版本
0.1.0
授權
MIT
最近更新
2026年8月27日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Configuration

The composition entry supplies the base; the llm-fallback section of the user settings document replaces it wholesale on the next failure (no restart):

llm-fallback:
  chains:
    - primary: { provider: z-ai-glm-53-flash }
      fallbacks:
        - { provider: openrouter, model: nvidia/nemotron-3-ultra-550b-a55b:free }
        - { provider: openrouter, model: minimax/minimax-m3:free }
  healOn: [SERVER, TIMEOUT, TRANSPORT, RATE_LIMIT, EMPTY_RESPONSE, INVALID_REQUEST]
  sticky: true
FieldMeaning
chainsOrdered healing chains; an empty list keeps the plugin dormant.
chains[].primaryThe watched route. model absent watches every model on the provider route.
chains[].fallbacksOrdered targets; each needs provider and model, with an optional reasoningEffort (off/low/high/max).
healOnFailure codes that trigger a heal; anything else delegates downstream.
stickytrue keeps the heal for the agent's remaining life; false re-binds the agent's own route when the healing turn closes.

A malformed section is refused where it is written — the settings write fails with the offending chain and field named.