dsh-dsml-leak-guard: Intercept DSML Tags Leaked by the Gateway and Trigger a Retryable Empty Response
dsh-dsml-leak-guard is a DSH host plugin maintained by GoGoZeppeli-towa, designed to address the issue of DSML control tag plain-text leakage that occurs when invoking DeepSeek through OpenAI-compatible gateways. Operating at the outer layer of llm/stream, the plugin detects and discards empty-turn outputs consisting solely of tags, rewrites the finish signal to EMPTY_RESPONSE, and pairs with dsh-llm-retry to trigger automatic retries without polluting the conversation history. It requires no user configuration and supports installation via both GitHub and npm. The plugin exclusively handles cases where an entire turn contains only tags; it does not strip inline markers embedded within body text. Licensed under MIT with zero dependencies.
Read More