zhubaohi/dsh-qwen38-compaction-fix0

dsh-qwen38-compaction-fix

DSH plugin: thinking-off compaction and session-title fix for local qwen3.8-27b gateways

包名
dsh-qwen38-compaction-fix
版本
1.0.0
许可证
MIT
最近更新
2026年8月25日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhubaohi/dsh-qwen38-compaction-fix

Configuration

All keys are optional; defaults are applied by the schema. Precedence (highest first):

  1. qwen38-compaction-fix: section of $DSH_HOME/settings.yaml (applies live, no restart)
  2. the config: block of the plugin row in your profile's cordis.patch.yml
  3. built-in defaults

Example settings.yaml:

qwen38-compaction-fix:
  effort: off            # "" disables the effort policy
  models: [qwen3.8-27b]  # exact ids; [] disables the whole policy
  sampling:              # wire field names, written verbatim into the body
    temperature: 0.7
    top_p: 0.8
    top_k: 20
    min_p: 0.0
    presence_penalty: 1.5
    repetition_penalty: 1.0
  maxTokensFloor: 16384  # 0 disables the floor
  titleReasoning: none   # "" disables the title gate
KeyDefaultMeaning
effort"off"Reasoning effort stamped onto matched calls. Preference order: configured → offlow; a model offering none of them keeps its own default (one-time warning). "" disables the effort policy.
purposes["compaction"]purpose tags of LLM calls the waterfall layer applies to.
models["qwen3.8-27b"]Exact model ids (case-sensitive) the policy applies to, checked at every layer. Empty list disables the whole policy.
sampling.*{}Sampling settings written verbatim into compaction request bodies. Absent keys stay absent.
maxTokensFloor16384Compaction bodies' wire max_tokens/max_completion_tokens are raised to at least this value (never lowered). 0 disables.
titleReasoning"none"Wire reasoning_effort value written into session-title request bodies. "" disables the gate.

A per-call explicit reasoningEffort always wins over the plugin default.