force-push/dsh-llm-fallback0

dsh-llm-fallback

Self-healing cross-provider model fallback for the DeepSeek Harness

AI Analysis

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

Package
dsh-llm-fallback
Version
0.1.0
License
MIT
Last updated
Aug 27, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full 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.